summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-25 10:56:19 -0500
committerGitHub <noreply@github.com>2020-02-25 10:56:19 -0500
commit21dab8b1664dcd88a1872f394890460977e01632 (patch)
treeaf144311b0b3e143a88c3b36734fead39338432b /cmd2/argparse_custom.py
parentf636aa1375fdeafe123b5e6483d5c96da7d3f2ba (diff)
parentf18390b31e52eb2bfebab34841da19cac25fab4c (diff)
downloadcmd2-git-21dab8b1664dcd88a1872f394890460977e01632.tar.gz
Merge pull request #901 from python-cmd2/api_docs_cleanup
Address comments from PR #899
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r--cmd2/argparse_custom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index 02e23f17..d6833673 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -92,7 +92,7 @@ path_complete, delimiter_complete)
Example::
- # this adds file-path completion to an argument
+ # This adds file-path completion to an argument
parser.add_argument('-o', '--options', completer_method=cmd2.Cmd.path_complete)
@@ -101,7 +101,7 @@ path_complete, delimiter_complete)
Example::
- # this says to call path_complete with a preset value for its path_filter argument.
+ # This says to call path_complete with a preset value for its path_filter argument
completer_method = functools.partial(path_complete,
path_filter=lambda path: os.path.isdir(path))
parser.add_argument('-o', '--options', choices_method=completer_method)