diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-25 10:56:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 10:56:19 -0500 |
commit | 21dab8b1664dcd88a1872f394890460977e01632 (patch) | |
tree | af144311b0b3e143a88c3b36734fead39338432b /cmd2/argparse_custom.py | |
parent | f636aa1375fdeafe123b5e6483d5c96da7d3f2ba (diff) | |
parent | f18390b31e52eb2bfebab34841da19cac25fab4c (diff) | |
download | cmd2-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.py | 4 |
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) |