static bool DoHelp(CommandLineArg x) { foreach (var arg in GetCmdList()) { Console.WriteLine(arg.GetShortCommand() + " " + arg.GetLongCommand() + "\t" + arg.GetDescription()); } return(false); }
public static void Init() { HelpArg = new CommandLineArg("-h", "--help", "Calls your mom"); HelpArg.SetFinishedParsingCllbk(DoHelp); }
/// <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); }