Exemplo n.º 1
0
 public HelpResult ToResult(CommandBaseHelp cmdBaseHelp, Footer foot)
 {
     return(new HelpResult(
                this,
                cmdBaseHelp,
                foot.Format(this, cmdBaseHelp)
                ));
 }
Exemplo n.º 2
0
        //public HelpResult(TopicHelp help, string footer) : this((BaseHelp)help, footer)
        //{
        //    firstLine = help.Topic + helpSep + firstLine;
        //}

        public HelpResult(
            HelpRequest req,
            CommandBaseHelp cmdBaseHelp,
            string footer) : this(cmdBaseHelp, footer)
        {
            firstLine = Format(
                Signature(req, cmdBaseHelp.Parameters),
                firstLine
                );
        }