mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
Fix detect defaults when nargs present
If a plugin adds a command line argument with the `nargs` parameter, e.g. `nargs='+'`, this parameter gets filtered from the `HelpfulArgumentParser` created/used in default detection. As a result, this parser does not parse the command line in the expected way, instead using the default value for `nargs`. Leaving `nargs` in place resolves this issue.
This commit is contained in:
parent
43f2bfd6f1
commit
15904d24c0
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ More detailed help:
|
|||
|
||||
|
||||
# These argparse parameters should be removed when detecting defaults.
|
||||
ARGPARSE_PARAMS_TO_REMOVE = ("const", "nargs", "type",)
|
||||
ARGPARSE_PARAMS_TO_REMOVE = ("const", "type",)
|
||||
|
||||
|
||||
# These sets are used when to help detect options set by the user.
|
||||
|
|
|
|||
Loading…
Reference in a new issue