//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"); } }
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(); }
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(); }