Exemplo n.º 1
0
 public string GetHelpText()
 {
     // "command name": "command help text"
     return(string.Join(
                Environment.NewLine,
                new string[] { HelpTextGenerator.GetHeader() }.Concat(GetSubCommandHelpTextLines(_commandMapping.Select(s => s.Value.Metadata)))));
 }
Exemplo n.º 2
0
        private static string GetDefaultHelpText(TOptions option)
        {
            var usages = GetOptionUsages();

            return(HelpTextGenerator.GetSubCommandHelpMessage(option, usages.ToArray()));
        }
Exemplo n.º 3
0
 public string GetVersionText()
 {
     return(HelpTextGenerator.GetVersion());
 }