mhf-server/Mhf.Cli/Argument/ConsoleParameter.cs
2019-11-24 19:43:35 +08:00

31 lines
834 B
C#

using System.Collections.Generic;
namespace Mhf.Cli.Argument
{
public class ConsoleParameter
{
public ConsoleParameter(string key)
{
Key = key;
Arguments = new List<string>();
Switches = new List<string>();
ArgumentMap = new Dictionary<string, string>();
SwitchMap = new Dictionary<string, string>();
}
public string Key { get; }
public List<string> Arguments { get; }
public List<string> Switches { get; }
public Dictionary<string, string> SwitchMap { get; }
public Dictionary<string, string> ArgumentMap { get; }
public void Clear()
{
Arguments.Clear();
Switches.Clear();
ArgumentMap.Clear();
SwitchMap.Clear();
}
}
}