Skip to content

Commit 1d640a1

Browse files
peterjcweibullguy
andauthored
Make -h act like --help as per docs (#299)
Closes #298 Co-authored-by: Doyle Rowland <doyle.rowland@reliaqual.com>
1 parent e78eed6 commit 1d640a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/docformatter/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _main(argv, standard_out, standard_error, standard_in):
113113
"""Run internal main entry point."""
114114
configurator = _configuration.Configurater(argv)
115115

116-
if "--help" in configurator.args_lst:
116+
if "--help" in configurator.args_lst or "-h" in configurator.args_lst:
117117
_help()
118118
return 0
119119
else:

0 commit comments

Comments
 (0)