1 instantiation of CommandArgument
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
127var argument = new CommandArgument { Name = name, Description = description, MultipleValues = multipleValues };
31 references to CommandArgument
Microsoft.AspNetCore.Shared.Tests (31)
CommandLineApplicationTests.cs (18)
37CommandArgument first = null; 38CommandArgument second = null; 58CommandArgument first = null; 59CommandArgument second = null; 78CommandArgument first = null; 79CommandArgument second = null; 119CommandArgument argument = null; 137CommandArgument first = null; 138CommandArgument second = null; 139CommandArgument third = null; 287var argument = app.Argument("first", "first argument"); 300var argument = app.Argument("first", "first argument"); 313var argument = app.Argument("first", "first argument"); 326var argument = app.Argument("first", "first argument"); 1028var a = app.Argument("name", "Pseudonym, of course"); 1173CommandArgument first = null; 1174CommandArgument second = null; 1208CommandArgument first = null;
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (13)
40Arguments = new List<CommandArgument>(); 56public readonly List<CommandArgument> Arguments; 110public CommandArgument Argument(string name, string description, bool multipleValues = false) 115public CommandArgument Argument(string name, string description, Action<CommandArgument> configuration, bool multipleValues = false) 117var lastArg = Arguments.LastOrDefault(); 127var argument = new CommandArgument { Name = name, Description = description, MultipleValues = multipleValues }; 146IEnumerator<CommandArgument> arguments = null; 482foreach (var arg in arguments) 601private sealed class CommandArgumentEnumerator : IEnumerator<CommandArgument> 603private readonly IEnumerator<CommandArgument> _enumerator; 605public CommandArgumentEnumerator(IEnumerator<CommandArgument> enumerator) 610public CommandArgument Current