internal static T GetArgValue <T>(this CommandArg current, string[] args) { if (args.Length == 0) { throw new ArgumentNullException(); } var index = Array.IndexOf(args, current.Name); if (index == -1) { index = Array.IndexOf(args, current.ShortName); } if (index == -1) { return(default);
internal CommandNullValueException(CommandArg command) : base(message: $"Ncessário informar o valor do commando {command.Name} ou {command.ShortName}") { this.command = command; }