8 references to CommandParsingException
dotnet-user-secrets (8)
Internal\RemoveCommand.cs (1)
22
throw new
CommandParsingException
(command, Resources.FormatError_MissingArgument("name"));
Internal\SetCommand.cs (2)
46
throw new
CommandParsingException
(command, Resources.FormatError_MissingArgument("name"));
51
throw new
CommandParsingException
(command, Resources.FormatError_MissingArgument("value"));
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (5)
235
throw new
CommandParsingException
(command, $"Unexpected value '{longOption[1]}' for option '{option.LongName}'");
304
throw new
CommandParsingException
(command, $"Unexpected value '{shortOption[1]}' for option '{option.LongName}'");
323
throw new
CommandParsingException
(command, $"Unexpected value '{arg}' for option '{option.LongName}'");
375
throw new
CommandParsingException
(command, $"Missing value for option '{option.LongName}'");
585
throw new
CommandParsingException
(command, $"Unrecognized {argTypeName} '{args[index]}'");