Skip to content

Commit

Permalink
Finish 2.2.1 patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
natemcmaster committed Apr 11, 2018
1 parent f174cf3 commit 0ef07a2
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 49 deletions.
13 changes: 8 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# Changelog

## [Unreleased]
## [v2.2.1]

**April 10, 2018**

Bug fixes:

- Don't assign option and argument options if no value was provided, preserving the default CLR value unless there is user-input.
- Fix ShowHint() to use ShortName or SymbolName if OptionHelp.LongName is not set
- Fix [#85](https://github.com/natemcmaster/CommandLineUtils/issues/85) - lower priority of resolving AdditionalServices after most built-in services
- Fix [#79](https://github.com/natemcmaster/CommandLineUtils/issues/79) - OnValidate callbacks invoked before property valueswere assigned

Minor improvements:

- Improve help text generation. Align columns, show top-level command description, and add `protected virtual` API to `DefaultHelpTextGenerator`
to make it easier to customize help text
- Improve help text generation. Align columns, show top-level command description, and add `protected virtual` API to `DefaultHelpTextGenerator` to make it easier to customize help text

## [v2.2.0]

**March 30,2018**
**March 30, 2018**

- Added support for command validators using `CommandLineApplication.Validators` and added a new OnValidate convention
- Fix minor bug in ArgumentEscaper where some strings were not properly escaped
Expand Down Expand Up @@ -139,7 +141,8 @@ Other:
[@rmcc13]: https://github.com/rmcc13
[@sebastienros]: https://github.com/sebastienros

[Unreleased]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0...HEAD
[Unreleased]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.1...HEAD
[v2.2.1]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0...v2.2.1
[v2.2.0]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0-rc...v2.2.0
[v2.2.0-rc]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0-beta...v2.2.0-rc
[v2.2.0-beta]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0-alpha...v2.2.0-beta
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $ dotnet add package McMaster.Extensions.CommandLineUtils
```
```xml
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
</ItemGroup>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions docfx_project/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
```xml
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
</ItemGroup>
```
Expand Down Expand Up @@ -85,4 +85,4 @@ public class Program

## More information

For more information, you can refer to the sample applications.
For more information, you can refer to the sample applications.
2 changes: 1 addition & 1 deletion docfx_project/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ dotnet add package McMaster.Extensions.CommandLineUtils
```
```xml
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
</ItemGroup>
```

Expand Down
46 changes: 9 additions & 37 deletions releasenotes.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,16 @@
<PropertyGroup>
<PackageReleaseNotes>
<![CDATA[
New features:
- Added more validation attributes.
- Add the `[FileExists]` attribute
- Add the `[FileOrDirectoryExists]` attribute
- Add the `[DirectoryExists]` attribute
- Add the `[LegalFilePath]` attribute
- Add the `[AllowedValues]` attribute
- Added a new, fluent API for validation.
- Added `Option().Accepts()` and `Argument().Accepts()`
- Add `.ExistingFile()`
- Add `.ExistingFileOrDirectory()`
- Add `.ExistingDirectory()`
- Add `.EmailAddress()`
- Add `.LegalFilePath()`
- Add `.MinLength(length)`
- Add `.MaxLength(length)`
- Add `.RegularExpression(pattern)`
- Add `.Values(string[] allowedValues)`
- Add `.Range(min, max)`
- 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 `ValueTuple<bool,T>` to `CommandOptionType.SingleOrNoValue`
- Generic commands, options, and arguments
- Added `CommandLineApplication<TModel>`. This allows associating an application with a specific .NET type
- Add support for `Option<T>` and `Argument<T>`
- Convention API
- Adds support for writing your own conventions to convert command line arguments into a .NET type
- Add API to use a dozen of built-in conventions
Bug fixes:
Other enhancements:
- Support parsing enums
- @rmcc13 - `HelpOption` can be set to be inherited by all subcommands
- @atruskie - Support for parsing double and floats
- @sebastienros - Support for case-insensitive options
- @atruskie: Add support for user-defined value parsers using `IValueParser` and `CommandLineApplication.ValueParsers`.
- Add support for constructor injection and dependency injection by providing a custom service provider
- Parse these values to boolean: T, t, F, f, 0, 1
- Add `VersionOptionFromMember` to use a property or method as the source of version information
- Don't assign option and argument options if no value was provided, preserving the default CLR value unless there is user-input.
- Fix ShowHint() to use ShortName or SymbolName if OptionHelp.LongName is not set
- Fix #85 - lower priority of resolving AdditionalServices after most built-in services
- Fix #79 - OnValidate callbacks invoked before property valueswere assigned
Minor improvements:
- Improve help text generation. Align columns, show top-level command description, and add `protected virtual` API to `DefaultHelpTextGenerator` to make it easier to customize help text
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v$(VersionPrefix.Replace('.',''))
]]>
Expand Down
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<VersionPrefix>2.2.1</VersionPrefix>
<VersionSuffix>alpha</VersionSuffix>
<VersionSuffix>rtm</VersionSuffix>
<PackageVersion Condition="'$(APPVEYOR_REPO_TAG)' == 'true' AND '$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</PackageVersion>
<PackageVersion Condition="'$(APPVEYOR_REPO_TAG)' == 'true' AND '$(VersionSuffix)' == 'rtm'">$(VersionPrefix)</PackageVersion>

Expand Down

0 comments on commit 0ef07a2

Please sign in to comment.