File tree 2 files changed +11
-1
lines changed
common/changes/@rushstack/ts-command-line
libraries/ts-command-line 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "changes" : [
3
+ {
4
+ "packageName" : " @rushstack/ts-command-line" ,
5
+ "comment" : " Fix a README typo." ,
6
+ "type" : " none"
7
+ }
8
+ ],
9
+ "packageName" : " @rushstack/ts-command-line"
10
+ }
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Several different kinds of parameters are supported:
45
45
| flag | ` --verbose ` | ` boolean ` | Value is ` true ` if the flag was specified on the command line, ` false ` otherwise. |
46
46
| integer | ` --max-retry 3 ` | ` int ` | The argument is an integer number |
47
47
| string | ` --title "Hello, world" ` | ` string ` | The argument is a text string. |
48
- | choice | ` --color red ` | ` string ` | The argument is must be a string from a list of allowed choices (similar to an enum). |
48
+ | choice | ` --color red ` | ` string ` | The argument must be a string from a list of allowed choices (similar to an enum). |
49
49
| string list | ` -o file1.txt -o file2.txt ` | ` string[] ` | The argument is a text string. The parameter can be specified multiple times to build a list. |
50
50
51
51
Other parameter kinds could be implemented if requested. That said, keeping your CLI grammar simple and systematic makes it easier for users to learn.
You can’t perform that action at this time.
0 commit comments