예제 #1
0
 public Arguments(string description, string execname)
     : this()
 {
     UsagePrinter             = new UsagePrinter();
     UsagePrinter.Description = description;
     UsagePrinter.Executable  = execname;
 }
예제 #2
0
 public void PrintUsage(TextWriter writer)
 {
     UsagePrinter.PrintUsage(writer, _args);
 }
예제 #3
0
 public Arguments(string description, Assembly programAssembly) : this()
 {
     UsagePrinter             = new UsagePrinter();
     UsagePrinter.Description = description;
     UsagePrinter.Executable  = programAssembly.GetName().Name;
 }
예제 #4
0
 private Arguments()
 {
     _args        = new List <IArgument>();
     UsagePrinter = new UsagePrinter();
 }