Пример #1
0
 static bool DoHelp(CommandLineArg x)
 {
     foreach (var arg in GetCmdList())
     {
         Console.WriteLine(arg.GetShortCommand() + " " + arg.GetLongCommand() + "\t" + arg.GetDescription());
     }
     return(false);
 }
Пример #2
0
        public static void Init()
        {
            HelpArg = new CommandLineArg("-h", "--help", "Calls your mom");

            HelpArg.SetFinishedParsingCllbk(DoHelp);
        }
Пример #3
0
 /// <summary>
 /// Adds a argument to the arglist
 /// </summary>
 /// <returns>idx of the item in the list</returns>
 public static void AddCmdArg(CommandLineArg arg)
 {
     argList.Add(arg);
 }