Skip to content

Commit 014f54f

Browse files
author
Jani Giannoudis
committed
console arguments: fixed access to named argument
updated version to 0.6.0-beta.8
1 parent e8a713c commit 014f54f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Client.Core/ConsoleArguments.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ public static string Get(int index, string name = null, bool allowToggle = false
109109
}
110110

111111
var arg = CommandLineArgs[index];
112-
if (!allowToggle && IsToggleArgument(arg))
112+
var namedParameter = arg.IndexOf(':') > 0;
113+
// ignore other named parameter
114+
if (namedParameter || !allowToggle && IsToggleArgument(arg))
113115
{
114116
arg = null;
115117
}

Client.Core/PayrollEngine.Client.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</ItemGroup>
7575

7676
<ItemGroup>
77-
<PackageReference Include="PayrollEngine.Core" Version="0.6.0-beta.7" />
77+
<PackageReference Include="PayrollEngine.Core" Version="0.6.0-beta.8" />
7878
</ItemGroup>
7979

8080
<!-- include xml documention files and json schemas to the nuget package -->

Directory.Build.props

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

33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
5-
<Version>0.6.0-beta.7</Version>
5+
<Version>0.6.0-beta.8</Version>
66
<FileVersion>0.6.0</FileVersion>
77
<InformationalVersion></InformationalVersion>
88
<Authors>Jani Giannoudis</Authors>

0 commit comments

Comments
 (0)