@@ -44,24 +44,24 @@ const output = optionSingleValue({
4444 short: " o" ,
4545 type: typePath (),
4646 description: " Output directory" ,
47- defaultIfNotSpecified : () => " dist/" ,
47+ fallbackValueIfAbsent : () => " dist/" ,
4848});
4949// --output dist/ → "dist/"
5050// --output=dist/ → "dist/"
5151// -o dist/ → "dist/"
5252// (absent) → "dist/"
5353```
5454
55- | Parameter | Type | Description |
56- | ----------------------- | --------------------- | ---------------------------------------------------------------------------- |
57- | ` long ` | ` string ` | Long option name |
58- | ` short ` | ` string? ` | Short option name |
59- | ` type ` | ` Type<Value> ` | Decoder for the value |
60- | ` description ` | ` string? ` | Help text |
61- | ` hint ` | ` string? ` | Short note in parentheses |
62- | ` defaultIfNotSpecified ` | ` () => Value ` | Value when option is absent — ** throw** to make it required |
63- | ` valueIfNothingInlined ` | ` () => Value? ` | Value when option is present but has no inline value (e.g. ` --output ` alone) |
64- | ` aliases ` | ` { longs?, shorts? } ` | Additional names |
55+ | Parameter | Type | Description |
56+ | -------------------------- | --------------------- | ---------------------------------------------------------------------------- |
57+ | ` long ` | ` string ` | Long option name |
58+ | ` short ` | ` string? ` | Short option name |
59+ | ` type ` | ` Type<Value> ` | Decoder for the value |
60+ | ` description ` | ` string? ` | Help text |
61+ | ` hint ` | ` string? ` | Short note in parentheses |
62+ | ` fallbackValueIfAbsent ` | ` () => Value ` | Value when option is absent — ** throw** to make it required |
63+ | ` impliedValueIfNotInlined ` | ` () => Value? ` | Value when option is present but has no inline value (e.g. ` --output ` alone) |
64+ | ` aliases ` | ` { longs?, shorts? } ` | Additional names |
6565
6666## ` optionRepeatable ` — collect multiple values
6767
0 commit comments