McMaster.Extensions.CommandLineUtils 2.3.0
Command-line parsing API and utilities for console applications.
Commonly used types:
McMaster.Extensions.CommandLineUtils.CommandLineApplication
McMaster.Extensions.CommandLineUtils.CommandOption
McMaster.Extensions.CommandLineUtils.IConsole
McMaster.Extensions.CommandLineUtils.Prompt
McMaster.Extensions.CommandLineUtils.ArgumentEscaper
A community-maintained fork of Microsoft.Extensions.CommandLineUtils, plus many enhancements.
Showing the top 20 packages that depend on McMaster.Extensions.CommandLineUtils.
Packages | Downloads |
---|---|
dotnet-serve
A simple command-line HTTP server.
|
19 |
## Enhancements:
* Support the POSIX convention for cluster multiple options. For example, `-ixd` is treated the same as `-i -x -d`.
* @bjorg: support SingleOrNoValue notation. `--option[:value]`
* New type: `Pager`. Provides a simple interaction model for displaying console output in a pager.
* Display help text using the `less` pager on macOS/Linux.
* Make suggestions when invalid options or commands are used, but there is a valid one that is similar. (Thanks to @MadbHatter for doing the initial work on this.)
* Add support for subcommand aliases. Commands can be given multiple names.
* Obsolete the constructor of `[Subcommand]` which takes a string.
* Infer subcommand names from the type name
* @lvermeulen: Sort subcommands by name in help text. This can be disabled with `DefaultHelpTextGenerator.SortCommandsByName`.
* @jcaillon: Add API for `UnrecognizedCommandParsingException` which includes suggestions for similar options or commands.
* @TheConstructor: add CommandLineApplication.GetValidationResult()
## Bugs fixed:
* Duplicate subcommand names used to cause undefined behavior. Now, attempting to add a duplicate subcommand name or aliases will cause the library to throw before the app can execute.
* Fix bug in subcommand name inference. When not specified, the subcommand always matched the entry assembly name. In this update, this convention only applies to the parent command.
* Add generic overloads of `.IsRequired()` for `CommandOption<T>` and `CommandArgument<T>`.
* @handcraftedsource: handled nested HelpOptions (fixes #86 - InvalidOperationException when multiple help options were defined)
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v230
.NET Framework 4.5
- System.ValueTuple (>= 4.4.0)
.NET Standard 1.6
- System.ComponentModel.Annotations (>= 4.1.0)
- System.Diagnostics.Process (>= 4.1.0)
- System.Threading.Thread (>= 4.0.0)
- System.ValueTuple (>= 4.4.0)
.NET Standard 2.0
- System.ComponentModel.Annotations (>= 4.4.1)
Version | Downloads | Last updated |
---|---|---|
4.1.1 | 26 | 04/18/2024 |
4.1.0 | 23 | 02/15/2024 |
4.0.2 | 21 | 02/15/2024 |
4.0.1 | 22 | 03/03/2022 |
4.0.0 | 23 | 02/15/2024 |
4.0.0-beta.74 | 22 | 02/07/2024 |
4.0.0-beta.56 | 20 | 02/07/2024 |
3.1.0 | 21 | 02/15/2024 |
3.1.0-rc.371 | 23 | 02/07/2024 |
3.1.0-beta.356 | 22 | 02/07/2024 |
3.1.0-beta.336 | 21 | 02/07/2024 |
3.0.0 | 16 | 02/15/2024 |
3.0.0-rc.289 | 23 | 02/07/2024 |
3.0.0-alpha.268 | 19 | 02/07/2024 |
2.6.0 | 23 | 02/15/2024 |
2.5.1 | 23 | 02/15/2024 |
2.5.0 | 24 | 02/15/2024 |
2.4.4 | 25 | 02/15/2024 |
2.4.3 | 22 | 02/15/2024 |
2.4.2 | 24 | 02/15/2024 |
2.4.1 | 21 | 02/15/2024 |
2.4.0 | 22 | 02/15/2024 |
2.3.4 | 27 | 02/15/2024 |
2.3.3 | 20 | 02/15/2024 |
2.3.2 | 22 | 02/15/2024 |
2.3.1 | 21 | 02/15/2024 |
2.3.0 | 17 | 02/15/2024 |
2.2.5 | 24 | 02/15/2024 |
2.2.4 | 22 | 02/15/2024 |
2.2.3 | 22 | 02/15/2024 |
2.2.2 | 20 | 02/15/2024 |
2.2.1 | 24 | 02/15/2024 |
2.2.0 | 23 | 02/15/2024 |
2.2.0-rc | 22 | 02/07/2024 |
2.2.0-beta | 25 | 02/07/2024 |
2.2.0-alpha | 21 | 02/07/2024 |
2.1.1 | 22 | 02/15/2024 |
2.1.0 | 23 | 02/15/2024 |
2.1.0-rc | 22 | 02/07/2024 |
2.1.0-beta | 20 | 02/07/2024 |
2.1.0-alpha | 21 | 02/07/2024 |
2.0.1 | 23 | 02/15/2024 |
2.0.0 | 15 | 02/15/2024 |