Skip to content

Commit 0ef07a2

Browse files
committed
Finish 2.2.1 patch release
1 parent f174cf3 commit 0ef07a2

File tree

8 files changed

+24
-49
lines changed

8 files changed

+24
-49
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
# Changelog
22

3-
## [Unreleased]
3+
## [v2.2.1]
4+
5+
**April 10, 2018**
46

57
Bug fixes:
68

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

1114
Minor improvements:
1215

13-
- Improve help text generation. Align columns, show top-level command description, and add `protected virtual` API to `DefaultHelpTextGenerator`
14-
to make it easier to customize help text
16+
- 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
1517

1618
## [v2.2.0]
1719

18-
**March 30,2018**
20+
**March 30, 2018**
1921

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

142-
[Unreleased]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0...HEAD
144+
[Unreleased]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.1...HEAD
145+
[v2.2.1]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0...v2.2.1
143146
[v2.2.0]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0-rc...v2.2.0
144147
[v2.2.0-rc]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0-beta...v2.2.0-rc
145148
[v2.2.0-beta]: https://github.com/natemcmaster/CommandLineUtils/compare/v2.2.0-alpha...v2.2.0-beta

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ dotnet add package McMaster.Extensions.CommandLineUtils
2929
```
3030
```xml
3131
<ItemGroup>
32-
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
32+
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
3333
</ItemGroup>
3434
```
3535

docfx_project/docs/concepts/samples/dependency-injection/custom/CustomServices.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
9+
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
1010
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.0" />
1111
</ItemGroup>
1212

docfx_project/docs/concepts/samples/dependency-injection/standard/StandardServices.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
10+
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
1111
</ItemGroup>
1212

1313
</Project>

docfx_project/docs/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
```xml
2424
<ItemGroup>
25-
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
25+
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
2626
</ItemGroup>
2727
```
2828
@@ -85,4 +85,4 @@ public class Program
8585

8686
## More information
8787

88-
For more information, you can refer to the sample applications.
88+
For more information, you can refer to the sample applications.

docfx_project/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $ dotnet add package McMaster.Extensions.CommandLineUtils
2222
```
2323
```xml
2424
<ItemGroup>
25-
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.0" />
25+
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.1" />
2626
</ItemGroup>
2727
```
2828

releasenotes.props

Lines changed: 9 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,16 @@
22
<PropertyGroup>
33
<PackageReleaseNotes>
44
<![CDATA[
5-
New features:
6-
- Added more validation attributes.
7-
- Add the `[FileExists]` attribute
8-
- Add the `[FileOrDirectoryExists]` attribute
9-
- Add the `[DirectoryExists]` attribute
10-
- Add the `[LegalFilePath]` attribute
11-
- Add the `[AllowedValues]` attribute
12-
- Added a new, fluent API for validation.
13-
- Added `Option().Accepts()` and `Argument().Accepts()`
14-
- Add `.ExistingFile()`
15-
- Add `.ExistingFileOrDirectory()`
16-
- Add `.ExistingDirectory()`
17-
- Add `.EmailAddress()`
18-
- Add `.LegalFilePath()`
19-
- Add `.MinLength(length)`
20-
- Add `.MaxLength(length)`
21-
- Add `.RegularExpression(pattern)`
22-
- Add `.Values(string[] allowedValues)`
23-
- Add `.Range(min, max)`
24-
- Add `CommandOptionType.SingleOrNoValue`.
25-
- Options of this type can be a switch, or have a value but only in the form `--param:value` or `--param=value`.
26-
- Support mapping `ValueTuple<bool,T>` to `CommandOptionType.SingleOrNoValue`
27-
- Generic commands, options, and arguments
28-
- Added `CommandLineApplication<TModel>`. This allows associating an application with a specific .NET type
29-
- Add support for `Option<T>` and `Argument<T>`
30-
- Convention API
31-
- Adds support for writing your own conventions to convert command line arguments into a .NET type
32-
- Add API to use a dozen of built-in conventions
5+
Bug fixes:
336
34-
Other enhancements:
35-
- Support parsing enums
36-
- @rmcc13 - `HelpOption` can be set to be inherited by all subcommands
37-
- @atruskie - Support for parsing double and floats
38-
- @sebastienros - Support for case-insensitive options
39-
- @atruskie: Add support for user-defined value parsers using `IValueParser` and `CommandLineApplication.ValueParsers`.
40-
- Add support for constructor injection and dependency injection by providing a custom service provider
41-
- Parse these values to boolean: T, t, F, f, 0, 1
42-
- Add `VersionOptionFromMember` to use a property or method as the source of version information
7+
- Don't assign option and argument options if no value was provided, preserving the default CLR value unless there is user-input.
8+
- Fix ShowHint() to use ShortName or SymbolName if OptionHelp.LongName is not set
9+
- Fix #85 - lower priority of resolving AdditionalServices after most built-in services
10+
- Fix #79 - OnValidate callbacks invoked before property valueswere assigned
11+
12+
Minor improvements:
13+
14+
- 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
4315
4416
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v$(VersionPrefix.Replace('.',''))
4517
]]>

version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<VersionPrefix>2.2.1</VersionPrefix>
4-
<VersionSuffix>alpha</VersionSuffix>
4+
<VersionSuffix>rtm</VersionSuffix>
55
<PackageVersion Condition="'$(APPVEYOR_REPO_TAG)' == 'true' AND '$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</PackageVersion>
66
<PackageVersion Condition="'$(APPVEYOR_REPO_TAG)' == 'true' AND '$(VersionSuffix)' == 'rtm'">$(VersionPrefix)</PackageVersion>
77

0 commit comments

Comments
 (0)