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