示例#1
0
 public Command(string call, ArgumentTable argTable, bool allowGlobs, ExecutionLevel execLevel, CLIMode mode)
 {
     Call           = call;
     ArgumentTable  = argTable;
     AllowGlobs     = allowGlobs;
     ExecutionLevel = execLevel;
     CLIMode        = mode;
 }
示例#2
0
 public Command(string call, ArgumentTable argTable, bool allowGlobs, string description, ExecutionLevel execLevel, CLIMode mode)
 {
     Call           = call;
     ArgumentTable  = argTable;
     AllowGlobs     = allowGlobs;
     ExecutionLevel = execLevel;
     Description    = call + " - " + description;
     if (argTable != null)
     {
         Description += "\nSyntax options: \n";
         argTable.ValidSequences.ForEach((x) =>
         {
             Description += "\t\"" + x.Pattern + "\"" + (x.Description != "" && x.Description != null ? " : \"" + x.Description + " \"" : "") + (x.OrderSensitive ? " (order sensitive)" : "") + "\n";
         });
     }
     CLIMode = mode;
 }