diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2016-10-20 20:26:14 -0200 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2016-10-20 20:34:39 -0200 |
commit | 620b384b69ffaf0e98af015a721f385ceb13093c (patch) | |
tree | ce602e4ea430c30b23282a8c5466d89dfb57761c /_pytest | |
parent | 5cbfefbba0e941f2871ccd65a1cf91b1dba1aea4 (diff) | |
download | pytest-620b384b69ffaf0e98af015a721f385ceb13093c.tar.gz |
Fix cmdline help message for custom options with two or more metavars
Fix #2004
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_pytest/config.py b/_pytest/config.py index a169a68a2..5df198e21 100644 --- a/_pytest/config.py +++ b/_pytest/config.py @@ -793,7 +793,7 @@ class DropShorterLongHelpFormatter(argparse.HelpFormatter): if len(option) == 2 or option[2] == ' ': return_list.append(option) if option[2:] == short_long.get(option.replace('-', '')): - return_list.append(option.replace(' ', '=')) + return_list.append(option.replace(' ', '=', 1)) action._formatted_action_invocation = ', '.join(return_list) return action._formatted_action_invocation |