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