You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usage: dryrun.py [-h] [-d DATA] [-dr]
optional arguments:
-h, --help show this help message and exit
-d DATA, --data DATA Basic text / string value
-dr, --dry_run Providing any value will set this to true
I would much prefer dry_run to not have a short option, and to have a dash in --dry-run instead of an underscore.
In general, I would like the spelling of CLI options to be customizable.
I found this solution to this particular case, but unfortunately it fiddles with a private ArgumentParser attribute:
If I define this function:
I get these CLI options:
I would much prefer
dry_run
to not have a short option, and to have a dash in--dry-run
instead of an underscore.In general, I would like the spelling of CLI options to be customizable.
I found this solution to this particular case, but unfortunately it fiddles with a private
ArgumentParser
attribute:Can anyone think of a good way to add support for this in Hug?
The text was updated successfully, but these errors were encountered: