Ejemplo n.º 1
0
 public void AddArgument(string key, string value = null)
 {
     if (!SupportedArguments.Contains(key.ToLowerInvariant()))
     {
         throw new ArgumentException("Key " + key + " is not supported.", "key");
     }
     _suppliedArguments[key.ToLowerInvariant()] = value;
 }
Ejemplo n.º 2
0
        public void Action()
        {
            var argumnetsProvider = new SupportedArguments();
            var arguments         = argumnetsProvider.GetArgumentsList();

            foreach (var argument in arguments)
            {
                Console.WriteLine($"-{argument.ShortName}, --{argument.Name}\t\t{argument.Description}");
            }
        }