internal static CommandConfigurationException RequiredArgumentsCannotHaveDefaultValue(CommandArgument option) { return(new CommandConfigurationException($"The required argument '{option.Value}' cannot have a default value.")); }
internal static CommandRuntimeException MissingRequiredArgument(CommandTree node, CommandArgument argument) { if (node.Command.Name == CliConstants.DefaultCommandName) { return(new CommandRuntimeException($"Missing required argument '{argument.Value}'.")); } return(new CommandRuntimeException($"Command '{node.Command.Name}' is missing required argument '{argument.Value}'.")); }