コード例 #1
0
 public static CommandLineBuilder UseQuarkCommandLineOptions(this CommandLineBuilder builder)
 => builder
 .UseHelp()
 .UseVersionOption()
 .UseDebugDirective()
 .UseParseErrorReporting()
 .ParseResponseFileAs(ResponseFileHandling.ParseArgsAsSpaceSeparated)
 .CancelOnProcessTermination()
 .UseAnsiTerminalWhenAvailable()
 .UseDefaults();
コード例 #2
0
        public static CommandLineBuilder UseHelp(this CommandLineBuilder builder)
        {
            var helpOption = new Option(new []
            {
                "-h",
                "/h",
                "--help",
                "-?",
                "/?"
            }, "Show help and usage information");

            return(builder.UseHelp(helpOption));
        }
コード例 #3
0
 public static CommandLineBuilder UseHelp(this CommandLineBuilder builder)
 {
     return(builder.UseHelp(new HelpOption()));
 }
コード例 #4
0
        public static CommandLineBuilder UseHelp(this CommandLineBuilder builder)
        {
            var helpOption = new HelpOption();

            return(builder.UseHelp(helpOption));
        }