Skip to content

Commit 69ee631

Browse files
authored
2.1.1 (#54)
* Fixes #49 (#50) * Enhancement 51 (#52) * Fixes #49 * Closes #51 * Bump version (#53) * Fixes #49 * Closes #51 * 2.1.0 > 2.1.1
1 parent 1d58d95 commit 69ee631

File tree

8 files changed

+11
-9
lines changed

8 files changed

+11
-9
lines changed

.github/workflows/dev-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
dotnet-version: ['5.0.x']
13+
dotnet-version: ['6.0.x']
1414

1515
steps:
1616
- uses: actions/checkout@v2

.github/workflows/pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
dotnet-version: ['5.0.x']
11+
dotnet-version: ['6.0.x']
1212

1313
steps:
1414
- uses: actions/checkout@v2

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
dotnet-version: ['5.0.x']
11+
dotnet-version: ['6.0.x']
1212

1313
steps:
1414
- uses: actions/checkout@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
An easily configured command line arguments parser that makes short work of turning those pesky `string[] args` into a strongly-typed configuration object.
44

5-
![.net](https://img.shields.io/badge/Frameworks-.netstandard21+net50-purple)
5+
![.net](https://img.shields.io/badge/Frameworks-.netstandard2.0+.netstandard2.1+net5.0+net6.0-purple)
66
![GitHub](https://img.shields.io/github/license/verticalsoftware/vertical-commandline)
77
![Package info](https://img.shields.io/nuget/v/vertical-commandline.svg)
88

src/Vertical.CommandLine.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
3+
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0</TargetFrameworks>
44
<LangVersion>8.0</LangVersion>
55
<RootNamespace />
66
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
@@ -9,7 +9,7 @@
99
<PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
1010
<Description>Simple command line argument mapping</Description>
1111
<Authors>Vertical Software contributors</Authors>
12-
<VersionPrefix>2.1.0</VersionPrefix>
12+
<VersionPrefix>2.1.1</VersionPrefix>
1313
<PackageId>vertical-commandline</PackageId>
1414
<PackageTags>commandline;utilities</PackageTags>
1515
<PackageProjectUrl>https://github.com/verticalsoftware/vertical-commandline</PackageProjectUrl>

src/Vertical/CommandLine/Parsing/TokenMatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public sealed class TokenMatcher : ITokenMatcher
2626
private static readonly string CompactShortOptionPattern = $"^-(?<{TemplateIdGroup}>[0-9a-zA-Z]+)$";
2727
private static readonly string LongOptionPattern = $"^--(?<{TemplateIdGroup}>[\\w-]+)$";
2828
private static readonly string WordPattern = $"^(?![\\W])(?<{TemplateIdGroup}>[0-9a-zA-Z-]+)$";
29-
private static readonly string CompositeOptionPattern = $"^--?(?<{TemplateIdGroup}>[0-9a-zA-Z]+)[=:](?<{OperandGroup}>.+)?$";
29+
private static readonly string CompositeOptionPattern = $"^--?(?<{TemplateIdGroup}>[\\w-]+)[=:](?<{OperandGroup}>.+)?$";
3030
private const string OptionsEndPattern = "^--$";
3131
private const string AnyPattern = ".+";
3232

test/Parsing/TokenMatcherTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public void PositiveMatchReturnsTokens(TokenMatcher matcher, string input, Token
3737
Scenario(TokenMatcher.CompositeOption, "-a:", new[]{ new Token(TokenType.CompositeOption, "a")}),
3838
Scenario(TokenMatcher.CompositeOption, "-a=", new[]{ new Token(TokenType.CompositeOption, "a")}),
3939
Scenario(TokenMatcher.CompositeOption, "--long=", new[]{ new Token(TokenType.CompositeOption, "long")}),
40-
Scenario(TokenMatcher.CompositeOption, "--long:", new[]{ new Token(TokenType.CompositeOption, "long")})
40+
Scenario(TokenMatcher.CompositeOption, "--long:", new[]{ new Token(TokenType.CompositeOption, "long")}),
41+
Scenario(TokenMatcher.CompositeOption, "--long-with-dashes:", new[]{ new Token(TokenType.CompositeOption, "long-with-dashes")}),
42+
Scenario(TokenMatcher.CompositeOption, "--long-with-dashes=", new[]{ new Token(TokenType.CompositeOption, "long-with-dashes")})
4143
);
4244

4345
[Theory, MemberData(nameof(NegativeTheories))]

test/Vertical.CommandLine.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<SignAssembly>true</SignAssembly>
77
<AssemblyOriginatorKeyFile>..\assets\Vertical.CommandLine.snk</AssemblyOriginatorKeyFile>

0 commit comments

Comments
 (0)