Skip to content

Commit

Permalink
Better document --docstring-length option and add it to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineD committed Feb 24, 2021
1 parent 99099d5 commit 494ec4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.rst
Expand Up @@ -166,6 +166,8 @@ Below is the help output::
in a mess
--range line line apply docformatter to docstrings between these lines;
line numbers are indexed at 1
--docstring-length length length
apply docformatter to docstrings of given length range
--version show program's version number and exit


Expand Down
2 changes: 1 addition & 1 deletion docformatter.py
Expand Up @@ -665,7 +665,7 @@ def _main(argv, standard_out, standard_error, standard_in):
dest='length_range',
default=None, type=int, nargs=2,
help='apply docformatter to docstrings of given '
'length')
'length range')
parser.add_argument('--version', action='version',
version='%(prog)s ' + __version__)
parser.add_argument('files', nargs='+',
Expand Down

0 comments on commit 494ec4d

Please sign in to comment.