-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Here are all options for an argument (as listed in docs):
{
names: ['file', 'f'], // Required (one of `names` or `name`).
type: 'string', // Required.
completionType: 'filename',
env: 'MYTOOL_FILE',
help: 'Config file to load before running "mytool"',
helpArg: 'PATH',
helpWrap: false,
default: path.resolve(process.env.HOME, '.mytoolrc')
}I am looking for an enum option, so I can use it like so:
{
names: ['signal','s']
type: 'string',
enum: ['SIGINT', 'SIGTERM', 'SIGKILL'] // <<<<<<<< here
}I can handle that in my code, but it would be nice if dashdash could do that!
thanks
Metadata
Metadata
Assignees
Labels
No labels