-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
Questionfurther information is requestedfurther information is requested
Description
I'm wondering what is the expected way to handle arguments or options that are not supplied.
To give one example, I have an option which should be true by default:
const knownOpts = {headers: [Boolean]};
And this would be commonly used in the cmd line as --no-headers. In the current scheme I will either have:
parsed.headers = undefined // falsy, but want it to be true
or
parsed.headers = false // definitely falsy
At the moment it feels like nopt creates an incomplete model of my options and I then have to pass to another function to normalise all incomplete values. Perhaps this is either a feature request or out of scope.
dottorblaster, paxperscientiam, aherreDev and kuema
Metadata
Metadata
Assignees
Labels
Questionfurther information is requestedfurther information is requested