mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-31 02:50:39 +02:00
Create dotnet-wiremock tool (#542)
* dotnet tool * . * c * x * ### As a dotnet tool * help * v
This commit is contained in:
@@ -9,7 +9,7 @@ namespace WireMock.Settings
|
||||
{
|
||||
private const string Sigil = "--";
|
||||
|
||||
private IDictionary<string, string[]> Arguments { get; } = new Dictionary<string, string[]>();
|
||||
private IDictionary<string, string[]> Arguments { get; } = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
public void Parse(string[] arguments)
|
||||
{
|
||||
@@ -70,6 +70,11 @@ namespace WireMock.Settings
|
||||
}, defaultValue);
|
||||
}
|
||||
|
||||
public bool GetBoolSwitchValue(string name)
|
||||
{
|
||||
return Contains(name);
|
||||
}
|
||||
|
||||
public int? GetIntValue(string name, int? defaultValue = null)
|
||||
{
|
||||
return GetValue(name, values =>
|
||||
|
||||
Reference in New Issue
Block a user