| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1955,10 +1955,12 @@ changes: | |||
| 1955 | 1955 | times. If `true`, all values will be collected in an array. If | |
| 1956 | 1956 | `false`, values for the option are last-wins. **Default:** `false`. | |
| 1957 | 1957 | * `short` {string} A single character alias for the option. | |
| 1958 | - * `default` {string | boolean | string\[] | boolean\[]} The default value to | ||
| 1959 | - be used if (and only if) the option does not appear in the arguments to be | ||
| 1960 | - parsed. It must be of the same type as the `type` property. When `multiple` | ||
| 1961 | - is `true`, it must be an array. | ||
| 1958 | + * `default` {string | boolean | string\[] | boolean\[]} The value to assign to | ||
| 1959 | + the option if it does not appear in the arguments to be parsed. The value | ||
| 1960 | + must match the type specified by the `type` property. If `multiple` is | ||
| 1961 | + `true`, it must be an array. No default value is applied when the option | ||
| 1962 | + does appear in the arguments to be parsed, even if the provided value | ||
| 1963 | + is falsy. | ||
| 1962 | 1964 | * `strict` {boolean} Should an error be thrown when unknown arguments | |
| 1963 | 1965 | are encountered, or when arguments are passed that do not match the | |
| 1964 | 1966 | `type` configured in `options`. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments