/// <summary> /// Registers a help argument that will display the help page for the program if set by the user. /// </summary> /// <param name="name">Name of the flag. The default value is "help".</param> public void RegisterHelpArgument(string name = "help") { FlagArgument arg = new FlagArgument(); arg.Processor = (v) => PrintHelp(); arg.HelpMessage = "Displays this help."; RegisterArgument(name, arg); }
/// <summary> /// Registers a help argument that will display the help page for the program if set by the user. /// </summary> /// <param name="name">Name of the flag. The default value is "help".</param> public void RegisterHelpArgument(string name = "help") { var arg = new FlagArgument { Processor = v => PrintHelp(), HelpMessage = "Displays this help." }; RegisterArgument(name, arg); }