Skip to content

Commit f7b69e2

Browse files
committed
Merge branch 'master' of github.com:author/arg
2 parents 5d3bb27 + 86f3633 commit f7b69e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Args.alias({
4545
Args.setOptions('name', 'john', 'jane')
4646

4747
// Allow a flag to accept multiple values (applies when the same flag is defined multiple times).
48-
Args.allowMultiple('c')
48+
Args.allowMultipleValues('c')
4949

5050
// Do not allow unrecognized flags
5151
Args.disallowUnrecognized()
@@ -91,7 +91,7 @@ Args.configure({
9191
},
9292
c: {
9393
default: 'test',
94-
allowMultiple: true
94+
allowMultipleValues: true
9595
},
9696
input: {
9797
alias: 'in'
@@ -146,7 +146,7 @@ The following attributes configuration attributes can be set for each flag:
146146
- `type` - The data type. Supports primitives like `Boolean` or their text (typeof) equivalent (i.e. "`boolean`").
147147
- `alias` - A string representing an alternative name for the flag.
148148
- `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).
150150
- `options` - An array of valid values for the flag.
151151

152152
### configure({...})
@@ -162,7 +162,7 @@ Args.configure({
162162
default: value,
163163
type: string_or_primitive, // example: 'boolean' or Boolean
164164
alias: string,
165-
allowMultiple: true/false,
165+
allowMultipleValues: true/false,
166166
options: [...]
167167
}, {
168168
...
@@ -194,7 +194,7 @@ Identify aliases for recognized flags.
194194

195195
Automatically executes `recognize` for any flags specified amongst the defaults.
196196

197-
### allowMultiple('flag1', 'flag2', ...)
197+
### allowMultipleValues('flag1', 'flag2', ...)
198198

199199
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).
200200

@@ -257,4 +257,4 @@ Use this message to store a description of the flag. This is stored as metadata.
257257

258258
### description(flagname)
259259

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

Comments
 (0)