mirror of
https://github.com/GhostPack/Lockless.git
synced 2026-11-08 08:06:09 -10:00
23 lines
645 B
C#
23 lines
645 B
C#
using System.Collections.Generic;
|
|
|
|
namespace LockLess
|
|
{
|
|
public class ArgumentParserResult
|
|
{
|
|
public bool ParsedOk { get; }
|
|
public Dictionary<string, string> Arguments { get; }
|
|
|
|
private ArgumentParserResult(bool parsedOk, Dictionary<string, string> arguments)
|
|
{
|
|
ParsedOk = parsedOk;
|
|
Arguments = arguments;
|
|
}
|
|
|
|
public static ArgumentParserResult Success(Dictionary<string, string> arguments)
|
|
=> new ArgumentParserResult(true, arguments);
|
|
|
|
public static ArgumentParserResult Failure()
|
|
=> new ArgumentParserResult(false, null);
|
|
|
|
}
|
|
} |