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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,7 @@ Any arguments that are not taken by options or commands, are automatically passe
165
165
|`aliases`|`string[]`|||`["n"]`| Alternate names for the option, available for use in addition to `name`|
166
166
|`description`|`string`|||`"Description of the command"`| Description for the command, only displayed with `--help` or `printHelp()`|
167
167
|`parse`|`function(value, options) => any`||`String`|`(value, options) => parseInt(value)`| Function that parses this option. The supplied arguments are the string value from the arg, and other options passed via the CLI and parsed by massarg before this one. Not all options will be available. |
168
-
|`default`|`boolean`||`false`|| When `true`, any args placed without name will be applied to this option. When more than one arg is supplied this way, only the last given will be used (unless the option is an array type). |
168
+
|`isDefault`|`boolean`||`false`|| When `true`, any args placed without name will be applied to this option. When more than one arg is supplied this way, only the last given will be used (unless the option is an array type). |
169
169
|`boolean`|`boolean`||`false`|| When set to `true`, this option will be treated as a boolean: will accept no value as `true`, or other truthy values as `true`, and the rest as `false`|
170
170
|`array`|`boolean`||`false`|| When set to true, you will be able to take multiple values when using the same option more than once. They will all be parsed properly and put into an array. |
171
171
|`required`|`boolean`||`false`|| When an option is required, parsing will throw a `RequiredError` if it was not given a proper value. If it is attached to a specific (or several) commands, it will only throw if the relevant command was used. |
0 commit comments