63 writes to Arity
aspire (7)
Commands\AddCommand.cs (1)
35Arity = ArgumentArity.ZeroOrOne
Commands\DescribeCommand.cs (1)
79Arity = ArgumentArity.ZeroOrOne
Commands\DoCommand.cs (1)
31Arity = isExtensionHost ? ArgumentArity.ZeroOrOne : ArgumentArity.ExactlyOne
Commands\ExportCommand.cs (1)
44Arity = ArgumentArity.ZeroOrOne
Commands\LogsCommand.cs (1)
84Arity = ArgumentArity.ZeroOrOne
Commands\Sdk\SdkDumpCommand.cs (1)
40Arity = ArgumentArity.ZeroOrMore
Commands\TelemetryCommandHelpers.cs (1)
37Arity = ArgumentArity.ZeroOrOne
cdac-build-tool (1)
ComposeCommand.cs (1)
13private readonly Argument<string[]> inputFiles = new("INPUT [INPUTS...]") { Arity = ArgumentArity.OneOrMore, Description = "One or more input files" };
crossgen2 (1)
Crossgen2RootCommand.cs (1)
20new("input-file-path") { CustomParser = result => Helpers.BuildPathDictionary(result.Tokens, true), Description = "Input file(s)", Arity = ArgumentArity.OneOrMore };
dotnet-format (1)
Commands\FormatCommandCommon.cs (1)
26Arity = ArgumentArity.ZeroOrOne
ilasm (1)
IlasmRootCommand.cs (1)
13new("input-file-paths") { Description = "Input IL source file(s)", Arity = ArgumentArity.OneOrMore };
ilc (1)
ILCompilerRootCommand.cs (1)
18new("input-file-path") { CustomParser = result => Helpers.BuildPathDictionary(result.Tokens, true), Description = "Input file(s)", Arity = ArgumentArity.OneOrMore };
Microsoft.DotNet.Cli.Definitions (39)
Commands\Build\BuildCommandDefinition.cs (1)
17Arity = ArgumentArity.ZeroOrMore
Commands\Clean\CleanCommandDefinition.cs (1)
18Arity = ArgumentArity.ZeroOrMore
Commands\DotNetCommandDefinition.cs (1)
45Arity = ArgumentArity.ZeroOrOne,
Commands\Help\HelpCommandDefinition.cs (1)
16Arity = ArgumentArity.ZeroOrMore
Commands\Hidden\List\ListCommandDefinition.cs (1)
20Arity = ArgumentArity.ZeroOrOne
Commands\Hidden\List\ListReferenceCommandDefinition.cs (1)
12public readonly Argument<string> Argument = new("argument") { Arity = ArgumentArity.ZeroOrOne, Hidden = true };
Commands\New\InstantiateCommandDefinition.cs (2)
17Arity = new ArgumentArity(0, 999) 41Arity = new ArgumentArity(0, 1)
Commands\New\NewCommandDefinition.cs (2)
92Arity = new ArgumentArity(0, 999), 180Arity = new ArgumentArity(0, 1),
Commands\New\NewDetailsCommandDefinition.cs (1)
22Arity = new ArgumentArity(1, 1)
Commands\New\NewInstallCommandDefinition.cs (1)
48Arity = new ArgumentArity(1, 99)
Commands\New\NewListCommandDefinition.cs (1)
73Arity = new ArgumentArity(0, 1)
Commands\New\NewSearchCommandDefinition.cs (1)
66Arity = new ArgumentArity(0, 1)
Commands\New\NewUninstallCommandDefinition.cs (1)
32Arity = new ArgumentArity(0, 99)
Commands\NuGet\NuGetCommandDefinition.cs (4)
54Arity = ArgumentArity.OneOrMore 129Arity = ArgumentArity.OneOrMore 197Arity = ArgumentArity.OneOrMore 360Arity = ArgumentArity.OneOrMore
Commands\Pack\PackCommandDefinition.cs (1)
19Arity = ArgumentArity.ZeroOrMore
Commands\Package\PackageRemoveCommandDefinition.cs (1)
29Arity = ArgumentArity.OneOrMore,
Commands\Package\PackageSearchCommandDefinition.cs (1)
17Arity = ArgumentArity.ZeroOrOne
Commands\Project\ProjectConvertCommandDefinition.cs (1)
13Arity = ArgumentArity.ExactlyOne,
Commands\Publish\PublishCommandDefinition.cs (1)
17Arity = ArgumentArity.ZeroOrMore
Commands\Reference\ReferenceAddCommandDefinition.cs (1)
25Arity = ArgumentArity.OneOrMore,
Commands\Reference\ReferenceRemoveCommandDefinition.cs (1)
23Arity = ArgumentArity.OneOrMore,
Commands\Restore\RestoreCommandDefinition.cs (1)
17Arity = ArgumentArity.ZeroOrMore
Commands\Solution\SolutionAddCommandDefinition.cs (1)
14Arity = ArgumentArity.ZeroOrMore,
Commands\Solution\SolutionCommandDefinition.cs (1)
21Arity = ArgumentArity.ZeroOrOne
Commands\Solution\SolutionRemoveCommandDefinition.cs (1)
14Arity = ArgumentArity.ZeroOrMore
Commands\Tool\StoreCommandDefinition.cs (1)
15Arity = ArgumentArity.ZeroOrMore,
Commands\Tool\ToolListCommandDefinition.cs (1)
14Arity = ArgumentArity.ZeroOrOne,
Commands\Tool\ToolUninstallCommandDefinition.cs (1)
14Arity = ArgumentArity.ExactlyOne
Commands\Workload\WorkloadCommandDefinitionBase.cs (1)
27Arity = ArgumentArity.OneOrMore,
Commands\Workload\WorkloadRestoreCommandDefinition.cs (1)
13Arity = ArgumentArity.ZeroOrMore
Commands\Workload\WorkloadSearchCommandDefinition.cs (1)
12Arity = ArgumentArity.ZeroOrOne,
Commands\Workload\WorkloadSearchVersionsCommandDefinition.cs (1)
12Arity = ArgumentArity.ZeroOrMore,
Common\CommonArguments.cs (2)
21Arity = ArgumentArity.ZeroOrOne, 30Arity = ArgumentArity.ExactlyOne,
Microsoft.TemplateEngine.Cli (1)
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
184Arity = new ArgumentArity(0, 999)
NuGet.CommandLine.XPlat (9)
Commands\ConfigCommands\ConfigCommand.cs (4)
25Arity = ArgumentArity.ExactlyOne, 31Arity = ArgumentArity.ExactlyOne, 37Arity = ArgumentArity.ExactlyOne, 43Arity = ArgumentArity.ExactlyOne,
Commands\Package\Download\PackageDownloadCommand.cs (1)
32Arity = ArgumentArity.OneOrMore,
Commands\Package\Update\PackageUpdateCommand.cs (1)
30Arity = ArgumentArity.ZeroOrMore,
Commands\PackageSearch\PackageSearchCommand.cs (1)
33Arity = ArgumentArity.ZeroOrOne,
Commands\Why\WhyCommand.cs (2)
72Arity = ArgumentArity.ZeroOrMore, 103Arity = ArgumentArity.ExactlyOne
System.CommandLine (1)
Option.cs (1)
72set => Argument.Arity = value;
System.CommandLine.StaticCompletions (1)
CompletionsCommandDefinition.cs (1)
13Arity = ArgumentArity.ZeroOrOne,
29 references to Arity
aspire (1)
Commands\GroupedHelpWriter.cs (1)
279if (arg.Arity.MinimumNumberOfValues == 0)
dotnet (1)
CliSchema.cs (1)
218CreateArityDetails(argument.Arity)
Microsoft.DotNet.Cli.Definitions (3)
Help\HelpBuilder.cs (2)
346argument.Arity.MaximumNumberOfValues > 1 382argument.Arity.MinimumNumberOfValues == 0;
Help\HelpBuilder.Default.cs (1)
53Argument argument => GetUsageLabel(argument.HelpName, argument.ValueType, argument.CompletionSources, argument, argument.Arity) ?? $"<{argument.Name}>",
Microsoft.TemplateEngine.Cli (2)
Commands\CommandLineUtils.cs (2)
26argument.Arity.MaximumNumberOfValues > 1 64argument.Arity.MinimumNumberOfValues == 0;
System.CommandLine (20)
ArgumentArity.cs (2)
86if (tokenCount < argumentResult.Argument.Arity.MinimumNumberOfValues) 96if (tokenCount > argumentResult.Argument.Arity.MaximumNumberOfValues)
Binding\ArgumentConverter.cs (2)
130if (argument.Arity is { MaximumNumberOfValues: 1, MinimumNumberOfValues: 1 }) 217ArgumentConversionResult result = argument.Arity.MaximumNumberOfValues switch
Help\HelpBuilder.cs (2)
295argument.Arity.MaximumNumberOfValues > 1 331argument.Arity.MinimumNumberOfValues == 0;
Help\HelpBuilder.Default.cs (1)
73Argument argument => GetUsageLabel(argument.HelpName, argument.ValueType, argument.CompletionSources, argument, argument.Arity) ?? $"<{argument.Name}>",
Option.cs (2)
71get => Argument.Arity; 113=> Argument.Arity.MinimumNumberOfValues > 0 && Argument.ValueType != typeof(bool);
Parsing\ArgumentResult.cs (2)
31internal bool ArgumentLimitReached => Argument.Arity.MaximumNumberOfValues == (_tokens?.Count ?? 0); 195return Argument.Arity.MaximumNumberOfValues switch
Parsing\CommandResult.cs (2)
161else if (argument.HasDefaultValue || argument.Arity.MinimumNumberOfValues > 0) 166if (!argument.HasDefaultValue && argument.Arity.MinimumNumberOfValues > 0)
Parsing\OptionResult.cs (1)
58=> Option.Argument.Arity.MaximumNumberOfValues == (Implicit ? Tokens.Count - 1 : Tokens.Count);
Parsing\ParseDiagramAction.cs (2)
81if (argumentResult.Argument.Arity.MaximumNumberOfValues > 0) 153arg.Argument.Arity.MaximumNumberOfValues == 0))
Parsing\ParseOperation.cs (4)
105currentArgumentCount >= arguments[currentArgumentIndex].Arity.MaximumNumberOfValues) 160if (currentArgumentCount < argument.Arity.MaximumNumberOfValues) 262if (argumentCount >= argument.Arity.MaximumNumberOfValues) 269if (argument.Arity.MaximumNumberOfValues == 0)
System.CommandLine.StaticCompletions (2)
shells\ZshShellProvider.cs (2)
111var isMultiValued = arg.Arity.MaximumNumberOfValues > 1; 123else if (arg.Arity.MinimumNumberOfValues == 0)