1 write to LongName
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
22
LongName
= part.Substring(2);
18 references to LongName
Microsoft.AspNetCore.Shared.Tests (18)
CommandLineApplicationTests.cs (10)
205
Assert.Contains($"Missing value for option '{first.
LongName
}'", ex.Message);
879
Assert.DoesNotContain(app.GetOptions(), o => o.
LongName
== "nest2");
880
Assert.DoesNotContain(app.GetOptions(), o => o.
LongName
== "nest1");
881
Assert.Contains(app.GetOptions(), o => o.
LongName
== "global");
883
Assert.DoesNotContain(subcmd1.GetOptions(), o => o.
LongName
== "nest2");
884
Assert.Contains(subcmd1.GetOptions(), o => o.
LongName
== "nest1");
885
Assert.Contains(subcmd1.GetOptions(), o => o.
LongName
== "global");
887
Assert.Contains(subcmd2.GetOptions(), o => o.
LongName
== "nest2");
888
Assert.Contains(subcmd2.GetOptions(), o => o.
LongName
== "nest1");
889
Assert.Contains(subcmd2.GetOptions(), o => o.
LongName
== "global");
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
171
option = command.GetOptions().SingleOrDefault(opt => string.Equals(opt.
LongName
, longOptionName, StringComparison.Ordinal));
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
}'");
424
Out.WriteLine(string.Format(CultureInfo.CurrentCulture, "Specify --{0} for a list of available options and commands.", OptionHelp.
LongName
));
523
commandsBuilder.Append(FormattableString.Invariant($"Use \"{target.Name} [command] --{OptionHelp.
LongName
}\" for more information about a command."));
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
48
if (string.IsNullOrEmpty(
LongName
) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))