-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an argument group for required parsed args (#299)
This way the --help message will be more clear and won't list the required arguments under optional arguments, which is the default for argument flags (--arg or -a), whether they are required or not. Note: to show the required arguments before the optional arguments we rely on a hacky fixed that accesses and changes a private attributes of the parser object (it reverses the list order). This addresses some of the issues raised in #111.
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters