Base:
method
AddError
System.CommandLine.Parsing.SymbolResult.AddError(System.String)
30 references to AddError
Microsoft.DotNet.Cli.CommandLine (4)
SpanParsableExtensions.cs (4)
104tokenizationResult.AddError($"Cannot parse null or empty value for symbol '{parentName}'"); 110tokenizationResult.AddError($"Cannot parse value '{tokenToParse}' for symbol '{parentName}' as a {typeof(T).Name}"); 146tokenizationResult.AddError($"Cannot parse null or empty value for symbol '{parentName}'"); 151tokenizationResult.AddError($"Cannot parse value '{tokenToParse}' for symbol '{parentName}' as a {typeof(T).Name}");
Microsoft.DotNet.Cli.Definitions (2)
Commands\Pack\PackCommandDefinition.cs (1)
87r.AddError(string.Format(CommandDefinitionStrings.InvalidVersion, value));
Common\CommonOptions.cs (1)
333argumentResult.AddError(string.Format(
Microsoft.TemplateEngine.Cli (12)
ChoiceTemplateParameter.cs (6)
114argumentResult.AddError(string.Format( 123argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_MissingDefaultValue, or.IdentifierToken?.Value)); 133argumentResult.AddError(string.Format( 142argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_MissingDefaultIfNoOptionValue, or.IdentifierToken?.Value)); 148argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_InvalidCount, or.IdentifierToken?.Value, argumentResult.Tokens.Count)); 156argumentResult.AddError(string.Format(
CliTemplateParameter.cs (6)
335argumentResult.AddError(string.Format( 346argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_MissingDefaultValue, or.IdentifierToken?.Value)); 357argumentResult.AddError(string.Format( 365argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_MissingDefaultIfNoOptionValue, or.IdentifierToken?.Value)); 376argumentResult.AddError(string.Format( 386argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_InvalidCount, or.IdentifierToken?.Value, argumentResult.Tokens.Count));
NuGet.CommandLine.XPlat (4)
Commands\Package\PackageWithNuGetVersion.cs (2)
45result.AddError(Messages.Error_MissingVersion(token.Value)); 51result.AddError(Messages.Error_InvalidVersion(versionString));
Commands\Package\PackageWithVersionRange.cs (2)
44result.AddError(Messages.Error_MissingVersion(token.Value)); 49result.AddError(Messages.Error_InvalidVersionRange(versionString));
System.CommandLine (8)
ArgumentValidation.cs (6)
90result.AddError(LocalizationResources.InvalidCharactersInFileName(token.Value[invalidCharactersIndex])); 118result.AddError(LocalizationResources.InvalidCharactersInPath(token.Value[invalidCharactersIndex])); 169argumentResult.AddError(LocalizationResources.UnrecognizedArgument(token.Value, values)); 195result.AddError(LocalizationResources.FileOrDirectoryDoesNotExist(token.Value)); 200result.AddError(LocalizationResources.DirectoryDoesNotExist(token.Value)); 204result.AddError(LocalizationResources.FileDoesNotExist(token.Value));
Parsing\CommandResult.cs (2)
103argumentResult.AddError(LocalizationResources.RequiredOptionWasNotProvided(option.Name)); 168argumentResult.AddError(LocalizationResources.RequiredArgumentMissing(argumentResult));