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

            HelpArg.SetFinishedParsingCllbk(DoHelp);
        }
Exemplo n.º 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);
 }