I would like to mark certain options as mandatory.
When such an option (along with a value, if so defined) is not present then the program would print the help to the console and exit (just like when you specify an option with a mandatory parameter by angle brackets).
I would like to use this feature e.g. to pass credentials to a program that can't work without them, eg
importToDatabase.js -u <username> -p <password> -d <databaseUrl>
I would like to mark certain options as mandatory.
When such an option (along with a value, if so defined) is not present then the program would print the help to the console and exit (just like when you specify an option with a mandatory parameter by angle brackets).
I would like to use this feature e.g. to pass credentials to a program that can't work without them, eg
importToDatabase.js -u <username> -p <password> -d <databaseUrl>