src/HelpBuilder.cs
/// <summary>
/// Construction of all help information in the Help object related to the Command.
/// </summary>
Construction of all help information in the Help object related to the Command.
Construction of all help information in the Help object related to the Command .
public void BuildHelp()
        {
            _subCommandsHelp = _command.GetSubcommands().Select(c => c.Attribute).OrderBy(c => c.Name);
            _argumentsHelp = _command.GetArguments().Select(a => a.Attribute);
            _optionsHelp = _command.GetOptions().Select(kv => kv.Attribute).OrderBy(a => a.Template);
            var builder = new StringBuilder();
            builder
                .AppendLine(_command.AppInfo.AppName)
                .AppendLine(VersionInformation())
                .AppendLine(UsageInformation());
            _helpText.Full = builder.ToString();
        }
public void BuildHelp ( ) { _subCommandsHelp = _command . GetSubcommands ( ) . Select ( c => c . Attribute ) . OrderBy ( c => c . Name ) ; _argumentsHelp = _command . GetArguments ( ) . Select ( a => a . Attribute ) ; _optionsHelp = _command . GetOptions ( ) . Select ( kv => kv . Attribute ) . OrderBy ( a => a . Template ) ; var builder = new StringBuilder ( ) ; builder . AppendLine ( _command . AppInfo . AppName ) . AppendLine ( VersionInformation ( ) ) . AppendLine ( UsageInformation ( ) ) ; _helpText . Full = builder . ToString ( ) ; }
Construction of all help information in the Help object related to the Command.
Construction of all help information in the Help object related to the Command .