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

No packages depend on McMaster.Extensions.CommandLineUtils.

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<TApp>() - executes an app where TApp uses attributes to define its options - CommandLineApplication.ExecuteAsync<TApp>() - 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
4.1.1 17 05/12/2024
4.1.0 12 11/24/2024
4.0.2 11 12/07/2024
4.0.1 11 11/20/2024
4.0.0 21 02/20/2023
4.0.0-beta.74 13 05/18/2024
4.0.0-beta.56 9 11/17/2024
3.1.0 9 11/20/2024
3.1.0-rc.371 10 11/20/2024
3.1.0-beta.356 16 05/15/2024
3.1.0-beta.336 9 12/02/2024
3.0.0 12 11/20/2024
3.0.0-rc.289 10 11/20/2024
3.0.0-alpha.268 8 11/19/2024
2.6.0 16 05/28/2024
2.5.1 14 11/14/2024
2.5.0 10 11/20/2024
2.4.4 11 11/24/2024
2.4.3 18 05/12/2024
2.4.2 10 11/20/2024
2.4.1 12 11/12/2024
2.4.0 11 11/20/2024
2.3.4 9 11/19/2024
2.3.3 14 05/15/2024
2.3.2 11 11/26/2024
2.3.1 10 11/20/2024
2.3.0 13 05/11/2024
2.2.5 14 05/15/2024
2.2.4 14 05/11/2024
2.2.3 13 11/24/2024
2.2.2 10 11/19/2024
2.2.1 9 11/20/2024
2.2.0 10 11/20/2024
2.2.0-rc 10 11/20/2024
2.2.0-beta 10 11/20/2024
2.2.0-alpha 11 11/24/2024
2.1.1 13 11/24/2024
2.1.0 11 11/14/2024
2.1.0-rc 10 11/22/2024
2.1.0-beta 10 11/20/2024
2.1.0-alpha 9 12/06/2024
2.0.1 10 11/20/2024
2.0.0 11 11/20/2024