Пример #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();
 }