Exemplo n.º 1
0
 /// <summary>
 /// Creates new instance of HelpConfig
 /// </summary>
 /// <param name="flag">Help flag for print help option</param>
 /// <param name="abr">Help flag abbreviation for print help option</param>
 /// <param name="description">Text for help option printed in help</param>
 /// <param name="helpPrinter">Help printer to generate help text</param>
 public HelpConfig(string flag, string abr, string description, IHelpPrinter helpPrinter)
 {
     Description = description;
     Printer     = helpPrinter;
     Flag        = flag;
     Abr         = abr;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Sets help printer to generate help text.
        /// </summary>
        /// <param name="printer">Help printer</param>
        /// <returns>Self instance</returns>
        public HelpConfigurator SetPrinter(IHelpPrinter printer)
        {
            _printer = printer;

            return(this);
        }
Exemplo n.º 3
0
 public ParserSettings(IHelpPrinter helpPrinter, IParsingErrorPrinter parsingErrorPrinter)
 {
     HelpPrinter         = helpPrinter;
     ParsingErrorPrinter = parsingErrorPrinter;
     AssignmentOperators = ImmutableArray <string> .Empty;
 }
Exemplo n.º 4
0
 public HelpCommand(IHelpPrinter helpPrinter, IServiceProvider serviceProvider)
 {
     HelpPrinter     = helpPrinter;
     ServiceProvider = serviceProvider;
 }
Exemplo n.º 5
0
 public IInitialFluentArgsBuilder RegisterHelpPrinter(IHelpPrinter helpPrinter)
 {
     ((InitialStep)Step).ParserSettings !.HelpPrinter = helpPrinter;
     return(this);
 }
Exemplo n.º 6
0
        public CliConfigurator SetHelpPrinter(IHelpPrinter helpPrinter)
        {
            _helpConfigurator.SetPrinter(helpPrinter);

            return(this);
        }