7 references to Names
System.CommandLine.StaticCompletions (4)
shells\BashShellProvider.cs (1)
194var optionNames = string.Join('|', option.Names());
shells\PowershellShellProvider.cs (1)
101var names = o.Names();
shells\ZshShellProvider.cs (2)
87foreach (var name in option.Names()) 100foreach (var name in option.Names())
System.CommandLine.StaticCompletions.Tests (3)
HelpExtensionsTests.cs (3)
18new HelpOption().Names().Should().BeEquivalentTo(["--help", "-h"]); 24new Option<string>("--name", "-n", "--nombre").Names().Should().Equal(["--name", "-n", "--nombre"]); 30new Option<string>("--name").Names().Should().Equal(["--name"]);