Interface: BaseFlagOptions<T>
Defined in: packages/parser/src/types.ts:39
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends FlagType | FlagType |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
alias? | MaybeArray<string> | Aliases for the flag. | packages/parser/src/types.ts:47 |
default? | unknown | The default value of the flag. | packages/parser/src/types.ts:49 |
required? | boolean | Whether the flag is required. | packages/parser/src/types.ts:51 |
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:45 |

