@guanghechen/commander 4.7.2 → 4.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,13 +29,14 @@ interface ICommandToken {
29
29
  /** Option value type */
30
30
  type ICommandOptionType = 'boolean' | 'number' | 'string';
31
31
  /** Option argument mode */
32
- type ICommandOptionArgs = 'none' | 'required' | 'variadic';
32
+ type ICommandOptionArgs = 'none' | 'required' | 'optional' | 'variadic';
33
33
  /**
34
34
  * Option configuration.
35
35
  *
36
36
  * `type` and `args` must be specified together. Valid combinations:
37
37
  * - boolean + none → boolean
38
38
  * - string + required → string
39
+ * - string + optional → string | undefined
39
40
  * - number + required → number
40
41
  * - string + variadic → string[]
41
42
  * - number + variadic → number[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanghechen/commander",
3
- "version": "4.7.2",
3
+ "version": "4.7.3",
4
4
  "description": "A minimal, type-safe command-line interface builder with fluent API",
5
5
  "author": {
6
6
  "name": "guanghechen",