Skip to content

Enhancement: Mandatory options #1086

Description

@ace130-github

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions