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:
commit
9dc43e84dc
|
@ -436,7 +436,7 @@ class DropShorterLongHelpFormatter(py.std.argparse.HelpFormatter):
|
||||||
if len(option) == 2 or option[2] == ' ':
|
if len(option) == 2 or option[2] == ' ':
|
||||||
return_list.append(option)
|
return_list.append(option)
|
||||||
if option[2:] == short_long.get(option.replace('-', '')):
|
if option[2:] == short_long.get(option.replace('-', '')):
|
||||||
return_list.append(option)
|
return_list.append(option.replace(' ', '='))
|
||||||
action._formatted_action_invocation = ', '.join(return_list)
|
action._formatted_action_invocation = ', '.join(return_list)
|
||||||
return action._formatted_action_invocation
|
return action._formatted_action_invocation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue