CommandLineUtils

Command line parsing and utilities for .NET

APACHE-2.0 License

Stars
2.2K
Committers
101

Bot releases are hidden (Show)

CommandLineUtils - 2.3.3

Published by natemcmaster over 5 years ago

See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details.

Changes:

  • 54427488df324809cf108a806e0abb00bf6e509a Option to use Pager to display help text (#216)
CommandLineUtils - 2.3.2

Published by natemcmaster over 5 years ago

See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details.

Changes:

  • 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"
  • 0478c23f7f17b33400e190345666d16f5560031c Update source-link and add package lock files
  • 1450132ec8fc2f77c889555cea9e41aa88f85e1f Update azure-pipelines.yml

This list of changes was auto generated.

CommandLineUtils - 2.3.1

Published by natemcmaster over 5 years ago

See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md for details.

Changes:

  • 876f89e9bcdbbf3cafb4773977b25d8ab2388713 Finish 2.3.1 patch
  • 48977707c8a9ad61988e659c28b186291795a2a7 Remove explicit FileVersion property
  • 3c60bf0300771b3517fc318e4bdc403a04da7bee Add tags automatically
  • fe8ecb2135e320aa15d20d099913a68bee628492 Fix for invalid SemVer 2 version
  • ca93b753da50d5c75b541293cee04fc2ef5e9905 Add Azure Pipelines definition
  • 2c1b7b8466997ef1286b5bb3aff3b624beacbdd5 Fix #203 - fix InvalidOperationException thrown from Pager on Mono

This list of changes was auto generated.

CommandLineUtils - v2.3.0

Published by natemcmaster almost 6 years ago

CommandLineUtils - 2.3.0 Release Candidate

Published by natemcmaster almost 6 years ago

CommandLineUtils - v2.3.0-beta

Published by natemcmaster almost 6 years ago

CommandLineUtils - v2.3.0-alpha

Published by natemcmaster about 6 years ago

CommandLineUtils - v2.2.5

Published by natemcmaster over 6 years ago

CommandLineUtils - v2.2.4

Published by natemcmaster over 6 years ago

CommandLineUtils - v2.2.3

Published by natemcmaster over 6 years ago

CommandLineUtils - v2.2.2

Published by natemcmaster over 6 years ago

CommandLineUtils -

Published by natemcmaster over 6 years ago

CommandLineUtils - v2.2.0-beta

Published by natemcmaster over 6 years ago

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:

  • Add CommandOptionType.SingleOrNoValue. Options of this type can be a switch, or have a value but only in the form --param:value or --param=value.
  • Support mapping Tuple<bool,T> and ValueTuple<bool,T> to CommandOptionType.SingleOrNoValue
  • Added CommandLineApplication<TModel>. This allows associating an application with a specific .NET type
  • Convention API. Adds support for writing your own conventions to convert command line arguments into a .NET type
  • [@sebastienros] - Support for case-insensitive options
  • Add support for constructor injection and dependency injection by providing a custom service provider

Build: 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

CommandLineUtils -

Published by natemcmaster almost 7 years ago

CommandLineUtils -

Published by natemcmaster almost 7 years ago

Same as the 2.1.0-rc release, but with documentation, more samples, and release notes.

CommandLineUtils - Attribute parsing and validation: 2.1.0-rc

Published by natemcmaster almost 7 years ago

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.

CommandLineUtils - Attribute parsing: 2.1.0-alpha

Published by natemcmaster almost 7 years ago

https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.1.0-alpha

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