44 references to Option
Microsoft.AspNetCore.Shared.Tests (44)
CommandLineApplicationTests.cs (42)
179
first = c.
Option
("--first <NAME>", "First argument", CommandOptionType.SingleValue);
180
second = c.
Option
("--second <NAME>", "Second argument", CommandOptionType.SingleValue);
199
first = c.
Option
("--first <NAME>", "First argument", CommandOptionType.SingleValue);
218
first = c.
Option
("--first <NAME>", "First argument", CommandOptionType.SingleValue);
219
second = c.
Option
("--second <NAME>", "Second argument", CommandOptionType.SingleValue);
239
first = c.
Option
("-1 --first <NAME>", "First argument", CommandOptionType.SingleValue);
240
second = c.
Option
("-2 --second <NAME>", "Second argument", CommandOptionType.SingleValue);
288
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
301
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
314
var option = app.
Option
("--first <value>", "first option", CommandOptionType.SingleValue);
327
var option = app.
Option
("--first <value>", "first option", CommandOptionType.SingleValue);
340
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
354
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
369
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
384
app.
Option
("--first", "first option", CommandOptionType.SingleValue);
397
var option = app.
Option
("--first", "first option", CommandOptionType.SingleValue);
412
var option = app.
Option
("--first", "first option", CommandOptionType.SingleValue);
460
app.
Option
("--first", "first option", CommandOptionType.NoValue);
473
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
488
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
503
app.
Option
("--first", "first option", CommandOptionType.SingleValue);
516
var option = app.
Option
("--first", "first option", CommandOptionType.SingleValue);
531
var option = app.
Option
("--first", "first option", CommandOptionType.SingleValue);
546
app.
Option
("--first", "first option", CommandOptionType.NoValue);
560
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
575
var option = app.
Option
("--first", "first option", CommandOptionType.NoValue);
590
app.
Option
("--first", "first option", CommandOptionType.SingleValue);
606
var option = app.
Option
("--first", "first option", CommandOptionType.SingleValue);
623
var option = app.
Option
("--first", "first option", CommandOptionType.SingleValue);
826
c.
Option
("-a|--ask", "Nested", CommandOptionType.SingleValue);
840
nested = c.
Option
("-a|--ask", "Nested", CommandOptionType.SingleValue);
918
var optTop = app.
Option
("-t|--top <TOP>", "arg for command", CommandOptionType.SingleValue);
945
var optTop = app.
Option
("-t|--top <TOP>", "arg for command", CommandOptionType.SingleValue);
972
var optTop = app.
Option
("-t|--top <TOP>", "arg for command", CommandOptionType.SingleValue);
999
var optTop = app.
Option
("-t|--top <TOP>", "arg for command", CommandOptionType.SingleValue);
1023
c.
Option
("--points <p>", "How many", CommandOptionType.MultipleValue);
1093
var optFlag = app.
Option
("-f |--flag", "some flag", CommandOptionType.NoValue);
1115
app.
Option
("-f |--file", "some file", CommandOptionType.SingleValue);
1128
var optVerbose = app.
Option
("-v |--verbose", "be verbose", CommandOptionType.NoValue);
1141
app.
Option
("-v |--verbose", "be verbose", CommandOptionType.NoValue);
1188
firstOption = c.
Option
("-firstActualOption", "first option", CommandOptionType.NoValue);
1189
secondOption = c.
Option
("--secondActualOption", "second option", CommandOptionType.NoValue);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
386
OptionHelp =
Option
(template, "Show help information", CommandOptionType.NoValue);
412
OptionVersion =
Option
(template, "Show version information", CommandOptionType.NoValue);