Merged in msabramo/pytest/help_show_args_with_equals_instead_of_space (pull request #130)

_pytest/config.py: In --help, show args with `=` instead of space.
This commit is contained in:
holger krekel 2014-03-26 19:04:35 +01:00
commit 9dc43e84dc
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ class DropShorterLongHelpFormatter(py.std.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)
return_list.append(option.replace(' ', '='))
action._formatted_action_invocation = ', '.join(return_list)
return action._formatted_action_invocation