public void Execute(params string[] inputParametrs) { try { if ((inputParametrs[0].ToString() != "") && (inputParametrs[0].ToString() != " ")) { throw new ArgumentException("Команда не принимает параметров"); } CommandsInit commandsInit = new CommandsInit(); foreach (ICommand option in commandsInit.Options) { Console.WriteLine(option.Name + option.Description); } } catch (ArgumentException e) { Console.WriteLine(e.Message); } }
public Application() { commandsInit = new CommandsInit(); TestCommand.iterations = 100; TestCommand.sequence = null; }