예제 #1
0
        //Test Stub
        static void Main(string[] args)
        {
            CommandLineParser clp = new CommandLineParser();

            clp.Args = args;
            Console.WriteLine("Command Line Arguements ");

            /* If the package is run as stand alone application
             * then add the default values for the member variables
             */
            try
            {
                foreach (string arg in args)
                {
                    Console.Write("  {0}", arg);
                }
                Console.Write("\n");
                if (clp.parseCommandLines())
                {
                    Console.WriteLine("\nParsed Command Line Data");
                    Console.WriteLine(clp.ToString());
                }
                else
                {
                    Console.WriteLine("Nothing to Parse");
                }
            }
            catch
            {
                Console.WriteLine("Error during command line parsing");
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            CommandLineParser clp = new CommandLineParser();

            clp.Args = args;
            Console.WriteLine("Command Line Arguements ");
            foreach (string arg in args)
            {
                Console.Write("  {0}", arg);
            }
            Console.Write("\n");
            if (clp.parseCommandLines())
            {
                Console.WriteLine("\nParsed Command Line Data");
                Console.WriteLine(clp.ToString());
            }
            else
            {
                Console.WriteLine("Nothing to Parse");
            }

            Console.ReadLine();
        }
예제 #3
0
        static void Main(string[] args)
        {
            CommandLineParser clp = new CommandLineParser();
            clp.Args = args;
            Console.WriteLine("Command Line Arguements ");
            foreach (string arg in args)
            {
                Console.Write("  {0}", arg);
            }
            Console.Write("\n");
            if (clp.parseCommandLines())
            {
                Console.WriteLine("\nParsed Command Line Data");
                Console.WriteLine(clp.ToString());
            }
            else
                Console.WriteLine("Nothing to Parse");

            Console.ReadLine();
        }