McMaster.Extensions.Hosting.CommandLine
2.3.0-beta
Prefix Reserved
See the version list below for details.
dotnet add package McMaster.Extensions.Hosting.CommandLine --version 2.3.0-beta
NuGet\Install-Package McMaster.Extensions.Hosting.CommandLine -Version 2.3.0-beta
<PackageReference Include="McMaster.Extensions.Hosting.CommandLine" Version="2.3.0-beta" />
paket add McMaster.Extensions.Hosting.CommandLine --version 2.3.0-beta
#r "nuget: McMaster.Extensions.Hosting.CommandLine, 2.3.0-beta"
// Install McMaster.Extensions.Hosting.CommandLine as a Cake Addin #addin nuget:?package=McMaster.Extensions.Hosting.CommandLine&version=2.3.0-beta&prerelease // Install McMaster.Extensions.Hosting.CommandLine as a Cake Tool #tool nuget:?package=McMaster.Extensions.Hosting.CommandLine&version=2.3.0-beta&prerelease
Provides command-line parsing API integration with the generic host API (Microsoft.Extensions.Hosting).
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- McMaster.Extensions.CommandLineUtils (>= 2.3.0-beta)
- Microsoft.Extensions.Hosting (>= 2.1.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on McMaster.Extensions.Hosting.CommandLine:
Package | Downloads |
---|---|
KubeOps
This is an operator sdk written in c#. It enables a developer to create a custom controller for CRDs (CustomResourceDefinitions) that runs on kubernetes. |
|
MbUtils.Extensions.CommandLineUtils
Helper classes for command line app |
|
OpenExtensions.Cli
This library provides abstractions, extensions and helpers for private cli tools |
|
42.CLI.Toolkit
Handy toolkit for a fancy CLI application. |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on McMaster.Extensions.Hosting.CommandLine:
Repository | Stars |
---|---|
icsharpcode/ILSpy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
|
|
natemcmaster/CommandLineUtils
Command line parsing and utilities for .NET
|
|
real-zony/ZonyLrcToolsX
ZonyLrcToolsX 是一个能够方便地下载歌词的小软件。
|
|
Mimetis/Dotmim.Sync
A brand new database synchronization framework, multi platform, multi databases, developed on top of .Net Standard 2.0. https://dotmimsync.readthedocs.io/
|
|
christianhelle/apiclientcodegen
A collection of Visual Studio custom tool code generators for Swagger / OpenAPI specification files
|
Version | Downloads | Last updated |
---|---|---|
4.1.1 | 224,226 | 2/19/2024 |
4.1.0 | 115,075 | 8/26/2023 |
4.0.2 | 332,194 | 11/19/2022 |
4.0.1 | 283,131 | 2/1/2022 |
4.0.0 | 40,682 | 12/27/2021 |
4.0.0-beta.74 | 37,257 | 1/22/2021 |
4.0.0-beta.56 | 303 | 1/17/2021 |
3.1.0 | 333,416 | 1/10/2021 |
3.1.0-rc.371 | 443 | 11/7/2020 |
3.1.0-beta.356 | 788 | 9/13/2020 |
3.1.0-beta.336 | 261 | 8/28/2020 |
3.0.0 | 139,346 | 3/29/2020 |
3.0.0-rc.289 | 455 | 3/21/2020 |
3.0.0-alpha.268 | 2,007 | 3/9/2020 |
2.6.0 | 12,331 | 3/8/2020 |
2.5.1 | 66,705 | 2/7/2020 |
2.5.0 | 15,244 | 1/2/2020 |
2.4.4 | 13,896 | 11/11/2019 |
2.4.3 | 19,229 | 11/1/2019 |
2.4.2 | 14,079 | 9/24/2019 |
2.4.1 | 2,697 | 9/18/2019 |
2.4.0 | 671 | 9/14/2019 |
2.4.0-rc.103 | 320 | 9/4/2019 |
2.4.0-beta.99 | 379 | 8/24/2019 |
2.4.0-beta.81 | 409 | 7/26/2019 |
2.4.0-alpha.70 | 325 | 6/20/2019 |
2.3.4 | 12,926 | 4/11/2019 |
2.3.3 | 1,956 | 3/11/2019 |
2.3.2 | 3,141 | 2/5/2019 |
2.3.1 | 1,107 | 1/19/2019 |
2.3.0 | 10,773 | 1/1/2019 |
2.3.0-rc.460 | 753 | 12/15/2018 |
2.3.0-beta | 1,148 | 12/4/2018 |
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.
```c#
[Command("organization", "org", "o")]
public class OrgCommand { }
```
* Obsolete the constructor of `[Subcommand]` which takes a string.
* Infer subcommand names from the type name
```c#
[Subcommand(typeof(AddCommand))]
public class Git { }
public class AddCommand { } // subcommand name = "add"
```
* @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.
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