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