diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-25 10:17:52 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-25 10:17:52 -0500 |
commit | 3d488c72e833bfa0630a250c17da0a2975c7d2a5 (patch) | |
tree | 471801da644e2e029c72e98e896285fb34013b4c /cmd2/argparse_custom.py | |
parent | b74b272c478ca8c504d2fa6e1613b28e09eb114f (diff) | |
download | cmd2-git-3d488c72e833bfa0630a250c17da0a2975c7d2a5.tar.gz |
Removed duplicate word and capitalized two comment sentences
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) |