Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Description
argparse supports short options, single-dash long options and double-dash long options. Values for option can be specified as separate argument (for all types of options):
--option value-option value-o valueIt can also be grouped in a single argument with the option. In this case it should be separated by= from the option name:
--option=value-option=value-ovalueargparse also supports abbreviation of long options (enabled by default):
--opt value-opt valueAbbreviated double-dash long options can be used with=:
--opt=valueBut this does not work with single-dash long options:
-opt=valueThis is definitely an omission. There are other bugs related to abbreviation (#104860) and use with= (#124305). There were many other bugs related to this code. This code is just not well tested.
The code for--opt=value is not tested as well -- breaking it does not break tests.
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status