Exemplo n.º 1
0
		static void Main(string[] args)
		{
			var options = new Options();
			if (CommandLineParser.Default.ParseArguments(args, options))
			{
				Console.WriteLine("t|ext: " + options.TextValue);
				Console.WriteLine("n|umeric: " + options.NumericValue.ToString());
				Console.WriteLine("b|ool: " + options.BooleanValue.ToString().ToLower());
			}
		}
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var options = new Options();

            if (!CommandLine.Parser.Default.ParseArguments(args, options))
            {
                Environment.Exit(CommandLine.Parser.DefaultExitCodeFail);
            }

            Console.WriteLine("t|ext: " + options.TextValue);
            Console.WriteLine("n|umeric: " + options.NumericValue);
            Console.WriteLine("b|ool: " + options.BooleanValue.ToString().ToLowerInvariant());
        }
        static void Main(string[] args)
        {
            var options = new Options();
            if (CommandLineParser.Default.ParseArguments(args, options))
            {

                   new DataStorer(new DataSettings()).Run();

                //RunCommand(args[0]);

                //Console.WriteLine("t|ext: " + options.TextValue);
                //Console.WriteLine("n|umeric: " + options.NumericValue.ToString());
                //Console.WriteLine("b|ool: " + options.BooleanValue.ToString().ToLower());
            }
        }