Type Alias: BaseFlagOptions<T>
ts
type BaseFlagOptions<T> = FlagRequiredOrDefault & object;Defined in: packages/parser/src/types.ts:53
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
short? | string | Short flag alias (single character). | packages/parser/src/types.ts:62 |
type | T | The type constructor or a function to convert the string value. To support multiple occurrences of a flag (e.g., --file a --file b), wrap the type in an array: [String], [Number]. e.g., String, Number, [String], (val) => val.split(',') | packages/parser/src/types.ts:60 |
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends TypeValue | TypeValue |

