public static ParseException OptionHasNoValue(IEnumerable <string> args, CommandTreeToken token, CommandOption option) { return(ParseExceptionFactory.Create(args, token, $"Option '{option.GetOptionName()}' is defined but no value has been provided.", "No value provided.")); }
internal static ConfigurationException OptionBothHasPairDeconstructorAndTypeParameter(CommandOption option) { return(new ConfigurationException($"The option '{option.GetOptionName()}' is both marked as pair deconstructable and convertable.")); }
internal static ConfigurationException OptionTypeDoesNotSupportDeconstruction(CommandOption option) { return(new ConfigurationException($"The option '{option.GetOptionName()}' is marked as " + "pair deconstructable, but the underlying type does not support that.")); }
internal static ConfigurationException OptionalOptionValueMustBeFlagWithValue(CommandOption option) { return(new ConfigurationException($"The option '{option.GetOptionName()}' has an optional value but does not implement IFlagValue.")); }