Ejemplo n.º 1
0
 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."));
 }
Ejemplo n.º 2
0
 internal static ConfigurationException OptionBothHasPairDeconstructorAndTypeParameter(CommandOption option)
 {
     return(new ConfigurationException($"The option '{option.GetOptionName()}' is both marked as pair deconstructable and convertable."));
 }
Ejemplo n.º 3
0
 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."));
 }
Ejemplo n.º 4
0
 internal static ConfigurationException OptionalOptionValueMustBeFlagWithValue(CommandOption option)
 {
     return(new ConfigurationException($"The option '{option.GetOptionName()}' has an optional value but does not implement IFlagValue."));
 }