You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Args.alias({
45
45
Args.setOptions('name', 'john', 'jane')
46
46
47
47
// Allow a flag to accept multiple values (applies when the same flag is defined multiple times).
48
-
Args.allowMultiple('c')
48
+
Args.allowMultipleValues('c')
49
49
50
50
// Do not allow unrecognized flags
51
51
Args.disallowUnrecognized()
@@ -91,7 +91,7 @@ Args.configure({
91
91
},
92
92
c: {
93
93
default:'test',
94
-
allowMultiple:true
94
+
allowMultipleValues:true
95
95
},
96
96
input: {
97
97
alias:'in'
@@ -146,7 +146,7 @@ The following attributes configuration attributes can be set for each flag:
146
146
-`type` - The data type. Supports primitives like `Boolean` or their text (typeof) equivalent (i.e. "`boolean`").
147
147
-`alias` - A string representing an alternative name for the flag.
148
148
-`aliases` - Support for multiple aliases.
149
-
-`allowMultiple` - If a flag is specified more than once, capture all values (instead of only the last one specified).
149
+
-`allowMultipleValues` - If a flag is specified more than once, capture all values (instead of only the last one specified).
150
150
-`options` - An array of valid values for the flag.
151
151
152
152
### configure({...})
@@ -162,7 +162,7 @@ Args.configure({
162
162
default: value,
163
163
type: string_or_primitive, // example: 'boolean' or Boolean
164
164
alias: string,
165
-
allowMultiple:true/false,
165
+
allowMultipleValues:true/false,
166
166
options: [...]
167
167
}, {
168
168
...
@@ -194,7 +194,7 @@ Identify aliases for recognized flags.
194
194
195
195
Automatically executes `recognize` for any flags specified amongst the defaults.
196
196
197
-
### allowMultiple('flag1', 'flag2', ...)
197
+
### allowMultipleValues('flag1', 'flag2', ...)
198
198
199
199
By default, if the same flag is defined multiple times, only the last value is recognized. Setting `allowMultiple` on a flag will capture all values (as an array).
200
200
@@ -257,4 +257,4 @@ Use this message to store a description of the flag. This is stored as metadata.
257
257
258
258
### description(flagname)
259
259
260
-
Retrieve the description of a flag. Returns `null` if no description is found.
260
+
Retrieve the description of a flag. Returns `null` if no description is found.
0 commit comments