McMaster.Extensions.CommandLineUtils 2.1.0
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.Configuration
QuantConnect LEAN Engine: Configuration Project - The Config and argument parser implementation
|
6 |
|
QuantConnect.ToolBox
QuantConnect LEAN Engine: ToolBox Project - A collection of data downloaders and converters
|
5 |
|
QuantConnect.ToolBox
QuantConnect LEAN Engine: ToolBox Project - A collection of data downloaders and converters
|
4 |
|
QuantConnect.Configuration
QuantConnect LEAN Engine: Configuration Project - The Config and argument parser implementation
|
4 |
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].
- Validation. You can use [Required] and any other ValidationAttribute to validate input on options and arguments.
- Async from end to end. Using C# 7.1 and attribute binding, your console app can be async from top to bottom.
- Required options and arguments. Added CommandOption.IsRequired() and CommandArgument.IsRequired().
New API
- Prompt.GetYesNo, Prompt.GetPassword, and more. Added API for interactively getting responses on the console.
- 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.ResponseFileHandling - 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
- Fix bug where DotNetExe.FullPath might return the wrong location of the dotnet.exe file
.NET Framework 4.5
- No dependencies.
.NET Standard 1.6
- System.ComponentModel.Annotations (>= 4.1.0)
- System.Diagnostics.Process (>= 4.1.0)
- System.Threading.Thread (>= 4.0.0)
.NET Standard 2.0
- System.ComponentModel.Annotations (>= 4.1.0)
| Version | Downloads | Last updated |
|---|---|---|
| 5.1.0 | 4 | 04/13/2026 |
| 5.0.1 | 3 | 04/13/2026 |
| 5.0.0 | 3 | 04/13/2026 |
| 5.0.0-beta.348 | 4 | 04/12/2026 |
| 5.0.0-beta.325 | 3 | 04/13/2026 |
| 4.1.1 | 3 | 04/13/2026 |
| 4.1.0 | 4 | 04/13/2026 |
| 4.0.2 | 3 | 04/13/2026 |
| 4.0.1 | 2 | 04/13/2026 |
| 4.0.0 | 2 | 04/13/2026 |
| 4.0.0-beta.74 | 2 | 04/13/2026 |
| 4.0.0-beta.56 | 4 | 04/13/2026 |
| 3.1.0 | 3 | 04/12/2026 |
| 3.1.0-rc.371 | 3 | 04/13/2026 |
| 3.1.0-beta.356 | 3 | 04/13/2026 |
| 3.1.0-beta.336 | 3 | 04/13/2026 |
| 3.0.0 | 3 | 04/13/2026 |
| 3.0.0-rc.289 | 3 | 04/13/2026 |
| 3.0.0-alpha.268 | 3 | 04/13/2026 |
| 2.6.0 | 2 | 04/13/2026 |
| 2.5.1 | 1 | 04/13/2026 |
| 2.5.0 | 3 | 04/13/2026 |
| 2.4.4 | 3 | 04/13/2026 |
| 2.4.3 | 3 | 04/13/2026 |
| 2.4.2 | 3 | 04/13/2026 |
| 2.4.1 | 3 | 04/13/2026 |
| 2.4.0 | 3 | 04/13/2026 |
| 2.3.4 | 3 | 04/13/2026 |
| 2.3.3 | 3 | 04/13/2026 |
| 2.3.2 | 3 | 04/13/2026 |
| 2.3.1 | 3 | 04/13/2026 |
| 2.3.0 | 3 | 04/13/2026 |
| 2.2.5 | 3 | 04/13/2026 |
| 2.2.4 | 3 | 04/13/2026 |
| 2.2.3 | 3 | 04/13/2026 |
| 2.2.2 | 3 | 04/13/2026 |
| 2.2.1 | 3 | 04/13/2026 |
| 2.2.0 | 2 | 04/13/2026 |
| 2.2.0-rc | 3 | 04/13/2026 |
| 2.2.0-beta | 2 | 04/13/2026 |
| 2.2.0-alpha | 3 | 04/13/2026 |
| 2.1.1 | 1 | 04/13/2026 |
| 2.1.0 | 3 | 04/13/2026 |
| 2.1.0-rc | 3 | 04/13/2026 |
| 2.1.0-beta | 3 | 04/13/2026 |
| 2.1.0-alpha | 3 | 04/13/2026 |
| 2.0.1 | 3 | 04/13/2026 |
| 2.0.0 | 3 | 04/13/2026 |