NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #1462 most downloaded on NuGet
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.
Latest stable
5.1.0
Last release 7 months ago
05 Apr 2026
Release timing varies
gaps range from 3 weeks to 1.9 years
Nearly every release is documented
notes for 33 of 33 stable releases
4 versions withdrawn
withdrawn after publishing
127 years old
43 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
@Chris-Wolfgang: Add support for keyed dependency injection via [FromKeyedServices] attribute
Changes since 5.0:
Features:
Fixes:
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md#v510
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/5.1.0 https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/5.1.0
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
Full Changelog: https://github.com/natemcmaster/CommandLineUtils/compare/v5.0.1...v5.1.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/5.1.0
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/5.1.0
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
Full Changelog: v5.0.1...v5.1.0
@natemcmaster: drop support for .NET Standard 2 and < .NET 6
Changes since 4.1:
Breaking changes:
Features:
Fixes:
Docs:
Other:
Updates in 5.0.1 patch:
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md#v501
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/5.0.1 https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/5.0.1
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
Full Changelog: https://github.com/natemcmaster/CommandLineUtils/compare/v5.0.0...v5.0.1
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/5.0.1
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/5.0.1
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
Full Changelog: v5.0.0...v5.0.1
@natemcmaster: drop support for .NET Standard 2 and < .NET 6
Changes since 4.1:
Breaking changes:
Features:
Fixes:
Docs:
Other:
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md#v500
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/5.0.0 https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/5.0.0
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
Full Changelog: https://github.com/natemcmaster/CommandLineUtils/compare/v4.1.1...v5.0.0
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/5.0.0
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/5.0.0
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
Full Changelog: v4.1.1...v5.0.0
fix: find dotnet.exe correctly when DOTNET_ROOT is not set (@danmoseley)
Changes since 4.0:
string[] options (@natemcmaster)See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md#v411
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.1.1 https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.1.1
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
Full Changelog: https://github.com/natemcmaster/CommandLineUtils/compare/v4.1.0...v4.1.1
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.1.1
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.1.1
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
Full Changelog: v4.1.0...v4.1.1
Packages have been posted to these feeds:
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.1.0 https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.1.0
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
string[] options by @natemcmaster in https://github.com/natemcmaster/CommandLineUtils/pull/540Full Changelog: https://github.com/natemcmaster/CommandLineUtils/compare/v4.0.2...v4.1.0
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.1.0
https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.1.0
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
string[] options by @natemcmaster in #540Full Changelog: v4.0.2...v4.1.0
string[] options@scott-xu and @natemcmaster: feature: add API for setting default value on options and arguments, and display them in help text (#389 and #420)
Changes since 3.1.0:
Features:
Fixes:
Updates in 4.0.1 patch:
Update in 4.0.2 patch:
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md#v402
See changes in https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.0.2 https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.0.2
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
@scott-xu and @natemcmaster: feature: add API for setting default value on options and arguments, and display them in help text (#389 and #420)
Changes since 3.1.0:
Features:
Fixes:
Updates in 4.0.1 patch:
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md#v401
See also https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.0.1 https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.0.1
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
@scott-xu and @natemcmaster: feature: add API for setting default value on options and arguments, and display them in help text (#389 and #420)
Features:
Fixes:
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md#v400
See more details in https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md.
Packages have been posted to these feeds:
https://nuget.org/packages/McMaster.Extensions.CommandLineUtils/4.0.0 https://nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/4.0.0
https://github.com/natemcmaster?tab=packages&repo_name=CommandLineUtils
@scott-xu: Show allowed values in help text
Improvements:
Bug fixes:
Docs:
Other:
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/main/CHANGELOG.md#v310
Get the update from https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/3.1.0
9f57dfecb4486f718866cd2bed4e2e7f70b21a9c Update changelog and releasenotes
9b91cfb5c658b4317f14566bd3d587f5837948ea Move PublicAPI to 'shipped'
2c3b8b5ec8b19186dda5aa5c59fb536e4254f5cc cleanup: upgrade dependencies
f5938c8ffa7815fef305a58c8fd9e6e836e7a9e7 cleanup: further code deduplication on new hosting APIs (#416)
643f9c35f79b8ae0be76d504a6982ba37df2f4d0 refactor: code deduplication and added/fixed tests for new hosting APIs (#415)
47d1194fcf7bd6a50325c5323d7d0e5ab29feba5 feature: expand Microsoft.Extensions.Hosting support to allow work to be done prior to Run*Async() (#409)
bcf20ed86c0df412b8acc29ed8192609b2bb51a4 cleanup: update .editorconfig
df0a511cd32341d2c5b174e56efb0e3fd1d273c4 cleanup: fixup more references to 'master'
7d705cceb0db6d64a6fc8c6f976eb54fe22f9699 cleanup: upgrade Linux CI to latest ubuntu version (#412)
29ecc1748be193149e37a42ee886bc5199676385 cleanup: upgrade test projects and CI to .NET 5 (#411) <details><summary><b>See More</b></summary>
760247dba1cfa0cc84f56be5c3bef3f17f133219 fix: late bind parsers for attribute-discovered options & arguments (#398)
4f686fe39e05d54f342f828ca9dbd39c0e39468f fix: treat null as 'true' by default when parsing Nullable<bool> types on command options (#397)
This list of changes was auto generated.</details>
AllowedValuesAttribute are used (#375)AllowedValues attribute instead of Enum values (#391)@AlexeyEvlampiev - implement support for GUID command line options (#333) and any other type that TypeConverter supports
Improvements:
Breaking changes:
See https://natemcmaster.github.io/CommandLineUtils/v3.0/upgrade-guide.html for more details.
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v300
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/3.0.0 https://www.nuget.org/packages/McMaster.Extensions.Hosting.CommandLine/3.0.0
See https://natemcmaster.github.io/CommandLineUtils/v3.0/upgrade-guide.html for more details.
This release takes steps to prepare for the 3.0 release by marking more API as obsolete that will be removed in the next major version.
This release takes steps to prepare for the 3.0 release by marking more API as obsolete that will be removed in the next major version.
This release contains no other major functional changes from 2.5.
This list of changes was auto generated.
fa06ab9b41b390fc7d1e6e0a9783a1b3882f1bb9 fix: lazy load command object types to reduce unnecessary allocations
This list of changes was auto generated.
Thanks to those who contributed to this release!
Thanks to those who contributed to this release!
83b28f440c6400e699e419fe05292dcf1fd62249 docs: update documentation for 2.5 (#325)
1aa5b8c65ed994ccde57fe10b961ef4a1facedc0 docs: update package metadata and release notes (#324)
fcfd448767d728e74218dd9739ed9b7e081369b5 fix: update help text generator to display HelpOption correctly (#323)
4fe7d703ffdfa30c2c62c7d62f3b1ea36f93c6f0 infra: update dependencies and test runtimes (#322)
64fdff7fd6f43a9ad04409184b616215e7aa8e79 docs: fix all <seealso> tags in XML docs and reformat code (#321)
308de0198d97eae39125a427130735408a7255b2 docs: update comments on DotNetExe.cs (#319)
63e57283012e6589f8857f71269c73bcb2a8f18e Create CODE_OF_CONDUCT.md (#318)
cebb8c12a3910c367f58a68d8c1438509da776db Update CONTRIBUTING.md (#314)
0a927cdf224630d2aaaf3b9e05ec7176fd169b81 Delete pull_request_template.md (#317)
42f6c4ae1ab3f6045be07a8ab99c94108d936d0d Update stale.yml to leave issues open at least 1 year (#316) <details><summary><b>See More</b></summary>
0b5285921bf0e3e9e0e68f896ffb426a5cdf331a Make ParserConfig internal (#313)
28c396b5fcdc942d403796af59d97abdde2c90cf Build for macOS on CI
9329cfb621fcbce7795bb28909ee1aa3c461791e Update release notes
e93a7fc30e2c33637c20fb0fc53fa73df476dcee fix: update generated help to display [command] first then [options] (#308)
1724fd2b41eddcb1cd996d7ed8b5534253d607ed fix: don't allow console with to be zero or less [ #306 ]
bde6cc72b685d3c32101d4a2609eb1a6970ac463 Merge branch 'release/2.4.4'
3084291dde2e1bbe18d95df52275e56b8bd1c130 Update issue templates
bbd8242fb7b43e889c2801d870883851387f52fe docs: fix broken links in changelog
7aba37645ad3f2b1946b21d050094495e208b748 Merge branch 'release/2.4.3'
1fefc7348f1007d32f5378f180b1cd45926664c6 Fixed small typo (Structing -> Structuring) in README (#299)
e856fed329ed7d4a0fae7545cef91a7de404584d feature: add support for configuring the characters used to separate option name and value [ #252 ]
0615346771c12c85fc535f06000a7d0399b3d13c Update changelog and release notes
3b5d9aade26bb98f94d39973ed475881032f30b1 docs: update options.md (#291)
0a717eb4837f2c824ea9d2407cdbc0a5c658f2e4 Update azure-pipelines.yml
b92f20ef3c9ef8627431fdee104c7b2aaade62ac feature: add support for private base type options (#288) [ #287 ]
b5f1af3a3f763531d6460d5ca6f1b9715f52b847 Update CHANGELOG.md
6792c96ca51e4e778bf15468207c49c6df31e0bd Merge branch 'release/2.4.2'
585b2a606a76a2f7fb4885a647dac5787acd3de3 Update MSBuild and project settings
baddffff0c718be9e1573cf4730a8f0b06263aaa Bump FluentAssertions from 5.7.0 to 5.9.0
c03d38182093f91fbfebbadbdb139e80907c5901 Bump Microsoft.SourceLink.GitHub
30e486b821bf8ba16026c78247a6b7766698aa74 feat: show enum values as argument in help text (#276) [ #92 ]
872dc260a3d47d7e9f5c1a61a825c9fc8deaaf7f Update CHANGELOG.md
849b592b2f073509850803ba97556ca12edb4991 Update CHANGELOG.md
This list of changes was auto generated.</details>
Fixes a regression introduced in 2.4.2 which caused Ctrl+C handling not to terminate the process quickly.
Fixes a regression introduced in 2.4.2 which caused Ctrl+C handling not to terminate the process quickly.
This list of changes was auto generated.
Thanks to @thomaslevesque for the patch!
Thanks to @thomaslevesque for the patch!
This list of changes was auto generated.
Environment.Exit is called3a86cab578b2e49ece275b896897e6974834f640 fix: avoid deadlock in the thread invoking the CancelKeyPress handler
This list of changes was auto generated.
Hot fix includes a workaround for NuGet/Home#8603, an issue affecting users in European, African, and Asian time zones only.
Hot fix includes a workaround for NuGet/Home#8603, an issue affecting users in European, African, and Asian time zones only.
Fix [#227] by @ejball - ArgumentEscaper should escape empty string
CommandLineApplication.ExecuteAsync actually asynchronousOnly reflects changes since 2.4 RC. See the complete list of changes since 2.3.4 here: https://github.com/natemcmaster/CommandLineUtils/compare/v2.3.4...v2.4.0
This list of changes was auto generated.
cf83608801e780ef98f5fe1527ca141a6454cc36 Finish 2.3.4 patch changes
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details.
This list of changes was auto generated.
54427488df324809cf108a806e0abb00bf6e509a Option to use Pager to display help text
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details.
Enhancements:
334d9054a7835807af72c42f85243497ed25032d Finish changes for v2.3.2
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details.
334d9054a7835807af72c42f85243497ed25032d Finish changes for v2.3.2
7272f72939808a51ee9f610e183430c1f8eadb6b Reduce number of times VSO commands are issued
f93ef9f90d18716f2e6e395e58c740bed04ef3ed Update azure-pipelines.yml for Azure Pipelines
43bc08b074ee9ed1e6b3b45e4babe4bd8e1169d9 Update CHANGELOG
b39a5e584f43971d1675471950ce1dd8d186b73c Update build counter to monotonically increase
ce921c1bd413786dd7b503e343f92e50476a480c Fix #211 - add support for class level validation attributes (#212)
ce715e8476f486f6d964e31c62db54465cee5aa6 Fix #207 - Additional command names are now case-sensitive (#210)
f0e482674b9125e4319eca2608a4009d0f33848f Fix issues with running PRs on Azure Pipelines
60c807527b80cd36675143aeaad02e5b3e92ce1a Bump version to 2.3.2
f7d50f2e157d9286c02d2b46f16dcf04bb31f45c Revert "Update source-link and add package lock files" <details><summary><b>See more</b></summary>
0478c23f7f17b33400e190345666d16f5560031c Update source-link and add package lock files
1450132ec8fc2f77c889555cea9e41aa88f85e1f Update azure-pipelines.yml
This list of changes was auto generated.</details>
Enhancements:
Bugs fixed:
876f89e9bcdbbf3cafb4773977b25d8ab2388713 Finish 2.3.1 patch
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details.
This list of changes was auto generated.
Bugs fixed:
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
Dec. 31, 2018
Enhancements:
Bugs fixed:
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
Bugs fixed:
Enhancements:
UnrecognizedCommandParsingException which includes suggestions for similar options or
commands. (#164)bool[]. (#143)MissingParameterlessConstructorException that includes the type causing the exception in the message. ([#148])ValueParser.Create which makes it easier to create implementations of IValueParser
(#169)Other notes:
Thanks to [@lucastheisen] for writing a new package, McMaster.Extensions.Hosting.CommandLine (#167). This new package provides integration with ASP.NET Core's "Generic Host" feature..
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
Enhancements:
Support the POSIX convention for cluster multiple options. For example, -ixd is treated the same as -i -x -d.
Resolved #93.
[@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.
[Command("organization", "org", "o")]
public class OrgCommand { }
Obsolete the constructor of [Subcommand] which takes a string.
Infer subcommand names from the type name
[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.
Bugs fixed:
.IsRequired() for
CommandOption<T> and CommandArgument<T>.Details:
Clustering options: I've added this behavior as the new default, but only if I think it won't interfere with existing apps.
If it causes issues or you don't like clustering, you can disable this by setting
CommandLineApplication.ClusterOptions = false.
To preserve compatibility with existing apps, this behavior is off if you have configured options with short names with
multiple characters. In a future version, this will cause an error unless you set ClusterOptions = false.
Pager: this is the new default for showing help text. The pager should have graceful fallback to regular stdout
when there are issues launching less, or when stdout is redirected into a pipe.
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
July 1, 2018
Bug fixes:
CommandOption<T> for type that is already registeredMinor improvements:
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
May 24, 2018
Bug fixes:
System.UriDotNetExe.FullPath to honor the DOTNET_ROOT environment variable as a fallbackSee https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
May 10, 2018
Minor improvements:
--version is specified.See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details
April 28, 2018
Minor improvement:
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.1
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.1
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v221 for details
April 10, 2018
Bug fixes:
Minor improvements:
protected virtual API to DefaultHelpTextGenerator to make it easier to customize help texthttps://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.0
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.0
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v220 for full details of what's in this release.
March 30, 2018
CommandLineApplication.Validators and added a new OnValidate conventionArgumentEscaper where some strings were not properly escapedhttps://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.0-rc
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.0-rc
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v220-rc for releates notes
March 23, 2018
New API:
IValueParser and CommandLineApplication.ValueParsers.Option<T> and Argument<T>IValidationBuilder<T>.Accepts().Range(min, max) for int and double type arguments and optionsEnhancements:
Removed:
Tuple<bool,T> to CommandOptionType.SingleOrNoValue.
ValueTuple<bool,T> is still present.This release contains a huge refactoring to the way the attribute-binding was implemented. As a part of this, I've made it possible for you to extend
This release contains a huge refactoring to the way the attribute-binding was implemented. As a part of this, I've made it possible for you to extend and control better the way that a .NET type is bound to CommandLineApplication.
New features:
CommandOptionType.SingleOrNoValue. Options of this type can be a switch, or have a value but only in the form --param:value or --param=value.Tuple<bool,T> and ValueTuple<bool,T> to CommandOptionType.SingleOrNoValueCommandLineApplication<TModel>. This allows associating an application with a specific .NET typeBuild: https://ci.appveyor.com/project/natemcmaster/commandlineutils/build/2.2.0-beta Release: https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.0-beta
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for release notes.
See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for release notes.
Build: https://ci.appveyor.com/project/natemcmaster/commandlineutils/build/2.2.0-alpha Release: https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.0-alpha
Feb. 15, 2018
New features:
[FileExists] attribute[FileOrDirectoryExists] attribute[DirectoryExists] attribute[LegalFilePath] attribute[AllowedValues] attributeOption().Accepts() and Argument().Accepts().ExistingFile().ExistingFileOrDirectory().ExistingDirectory().EmailAddress().LegalFilePath().MinLength(length).MaxLength(length).RegularExpression(pattern).Values(string[] allowedValues)API improvements:
HelpOption can be set to be inherited by all subcommandsVersionOptionFromMember to use a property or method as the source of version informationFix https://github.com/natemcmaster/CommandLineUtils/issues/32 - Don't validate options when --help or --version is specified
[Fixed]
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.1.1
Dec. 27, 2017
Bug fixes:
OptionAttribute.ShortName is overridenSame as the 2.1.0-rc release, but with documentation, more samples, and release notes.
Same as the 2.1.0-rc release, but with documentation, more samples, and release notes.
Dec. 12, 2017
New features:
[Option] or [Argument], [Subcommand].[Command] and [Subcmomand].[HelpOption] and [VersionOption].[Required] and any other ValidationAttribute to validate input on options and arguments.CommandOption.IsRequired() and CommandArgument.IsRequired().New API
Prompt.GetSecureStringPrompt.GetYesNo, Prompt.GetPassword, and more. Added API for interactively getting responses on the console.OptionAttribute, ArgumentAttribute, CommandAttribute, SubcommandAttribute, HelpOptionAttribute, and VersionOptionAttribute.CommandLineApplication.Execute<TApp>() - executes an app where TApp uses attributes to define its optionsCommandLineApplication.ExecuteAsync<TApp>() - 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.CommandLineApplication.VersionOptionFromAssemblyAttributes and .VerboseOption extension methodsMinor bug fixes:
.VerboseOption() and ensure .HasValue() is true when HelpOption or VerboseOption are matchedDotNetExe.FullPath might return the wrong location of the dotnet.exe fileOther:
Includes all the features of 2.1.0-alpha, but have been refined to handled better a wider range of configurations.
Includes all the features of 2.1.0-alpha, but have been refined to handled better a wider range of configurations.
Plus, this includes parameter validation.
Nothing published for this version
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.1.0-alpha
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.1.0-alpha
2.1.0: New features:
New API
Minor bug fixes:
Added support of .NETStandard1.6 - Issue #5
Changes
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.0.1
Oct. 31, 2017
Add .NET Framework 4.5 support, in addition to .NET Standard 2.0
Changes from the RC
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.0.0
Sep. 16, 2017
Updated the licensing in the source code
Changes
Unless there are any big changes, the RTM of 2.0.0 will be basically the same.
https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.0.0-rc
Nothing published for this version
One column per quarter.