McMaster.Extensions.CommandLineUtils 2.1.0-alpha

Command-line parsing API. A community-maintained fork of Microsoft.Extensions.CommandLineUtils, plus extras. Commonly used types: McMaster.Extensions.CommandLineUtils.CommandLineApplication McMaster.Extensions.CommandLineUtils.CommandOption McMaster.Extensions.CommandLineUtils.IConsole McMaster.Extensions.CommandLineUtils.ArgumentEscaper

Showing the top 20 packages that depend on McMaster.Extensions.CommandLineUtils.

Packages Downloads
QuantConnect.ToolBox
QuantConnect LEAN Engine: ToolBox Project - A collection of data downloaders and converters
44
QuantConnect.ToolBox
QuantConnect LEAN Engine: ToolBox Project - A collection of data downloaders and converters
43
QuantConnect.ToolBox
QuantConnect LEAN Engine: ToolBox Project - A collection of data downloaders and converters
42
QuantConnect.ToolBox
QuantConnect LEAN Engine: ToolBox Project - A collection of data downloaders and converters
41
QuantConnect.ToolBox
QuantConnect LEAN Engine: ToolBox Project - A collection of data downloaders and converters
40
QuantConnect.Configuration
QuantConnect LEAN Engine: Configuration Project - The Config and argument parser implementation
40
QuantConnect.ToolBox
QuantConnect LEAN Engine: ToolBox Project - A collection of data downloaders and converters
39

2.1.0: New features:

  • Attributes. Simplify command line argument definitions by adding attributes to a class that represents options and arguments.
    • Options defined as [Option] or [Argument], [Subcommand].
    • Command parsing options can be defined with [Command] and [Subcmomand].
    • Special options include [HelpOption] and [VersionOption].
  • Async from end to end. Using C# 7.1 and attribute binding, your console app can be async from top to bottom.

New API

  • Added OptionAttribute, ArgumentAttribute, CommandAttribute, SubcommandAttribute, HelpOptionAttribute, and VersionOptionAttribute.
  • CommandLineApplication.Execute() - executes an app where TApp uses attributes to define its options
  • CommandLineApplication.ExecuteAsync() - sample thing, but async.
  • CommandLineApplication.StopParsingHelpOption and StopParsingVerboseOption. When the help and verbose options are matched against a command-line flag, the parsing will stop by default. You can turn this off by setting these options if you want OnExecute to be invoked no matter what.
  • CommandLineApplication.HandleResponseFiles - the parser can treat arguments that begin with '@' as response files. Response files contain arguments that will be treated as if they were passed on command line.

Minor bug fixes:

  • Add return types to .VerboseOption() and ensure .HasValue() is true when HelpOption or VerboseOption are matched
  • Fix a NullReferenceException in some edge cases when parsing args

.NET Framework 4.5

  • No dependencies.

.NET Standard 1.6

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
5.1.0 38 04/13/2026
5.0.1 31 04/13/2026
5.0.0 31 04/13/2026
5.0.0-beta.348 48 04/12/2026
5.0.0-beta.325 41 04/13/2026
4.1.1 32 04/13/2026
4.1.0 41 04/13/2026
4.0.2 42 04/13/2026
4.0.1 45 04/13/2026
4.0.0 35 04/13/2026
4.0.0-beta.74 30 04/13/2026
4.0.0-beta.56 30 04/13/2026
3.1.0 40 04/12/2026
3.1.0-rc.371 41 04/13/2026
3.1.0-beta.356 41 04/13/2026
3.1.0-beta.336 30 04/13/2026
3.0.0 32 04/13/2026
3.0.0-rc.289 43 04/13/2026
3.0.0-alpha.268 41 04/13/2026
2.6.0 31 04/13/2026
2.5.1 42 04/13/2026
2.5.0 42 04/13/2026
2.4.4 41 04/13/2026
2.4.3 25 04/13/2026
2.4.2 32 04/13/2026
2.4.1 31 04/13/2026
2.4.0 38 04/13/2026
2.3.4 29 04/13/2026
2.3.3 40 04/13/2026
2.3.2 32 04/13/2026
2.3.1 29 04/13/2026
2.3.0 33 04/13/2026
2.2.5 31 04/13/2026
2.2.4 45 04/13/2026
2.2.3 47 04/13/2026
2.2.2 38 04/13/2026
2.2.1 33 04/13/2026
2.2.0 31 04/13/2026
2.2.0-rc 34 04/13/2026
2.2.0-beta 43 04/13/2026
2.2.0-alpha 41 04/13/2026
2.1.1 32 04/13/2026
2.1.0 27 04/13/2026
2.1.0-rc 36 04/13/2026
2.1.0-beta 32 04/13/2026
2.1.0-alpha 43 04/13/2026
2.0.1 32 04/13/2026
2.0.0 40 04/13/2026