Skip to content

Commit

Permalink
BF: rstrip before checking if trailing period is needed
Browse files Browse the repository at this point in the history
Spotted odd docstring
  --mode {egrep,textblob,autofield}
                        Mode of search index structure and content. See
                        section SEARCH MODES for details. . [Default: None]
  • Loading branch information
yarikoptic committed Nov 7, 2018
1 parent 6c98cec commit 4512a78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datalad/interface/base.py
Expand Up @@ -558,7 +558,7 @@ def setup_parser(cls, parser):
if defaults_idx >= 0:
parser_kwargs['default'] = defaults[defaults_idx]
help = alter_interface_docs_for_cmdline(param._doc)
if help and help[-1] != '.':
if help and help.rstrip()[-1] != '.':
help += '.'
if param.constraints is not None:
parser_kwargs['type'] = param.constraints
Expand Down
3 changes: 1 addition & 2 deletions datalad/metadata/search.py
Expand Up @@ -1091,8 +1091,7 @@ class Search(Interface):
args=("--mode",),
choices=('egrep', 'textblob', 'autofield'),
doc="""Mode of search index structure and content. See section
SEARCH MODES for details.
"""),
SEARCH MODES for details."""),
full_record=Parameter(
args=("--full-record", '-f'),
action='store_true',
Expand Down

0 comments on commit 4512a78

Please sign in to comment.