diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-26 13:10:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 13:10:20 -0400 |
commit | bb6cc1d618745ffe43b1bfabf93efaf592b2c3ad (patch) | |
tree | f2a70b762442baaaa956cb1338a5c74d9bc0aa9a /examples/python_scripting.py | |
parent | 759468b337d7ad6304c9f26ce0dc481d20588c8f (diff) | |
parent | bb9e5e5e3d64bfaf2ee67f056e5d0df405a2b8f3 (diff) | |
download | cmd2-git-bb6cc1d618745ffe43b1bfabf93efaf592b2c3ad.tar.gz |
Merge branch 'master' into document_completion
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-x | examples/python_scripting.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python_scripting.py b/examples/python_scripting.py index 0b0030a5..7847b8b6 100755 --- a/examples/python_scripting.py +++ b/examples/python_scripting.py @@ -88,7 +88,7 @@ class CmdLineApp(cmd2.Cmd): # Enable tab completion for cd command def complete_cd(self, text, line, begidx, endidx): - return self.path_complete(text, line, begidx, endidx, dir_only=True) + return self.path_complete(text, line, begidx, endidx, path_filter=os.path.isdir) dir_parser = argparse.ArgumentParser() dir_parser.add_argument('-l', '--long', action='store_true', help="display in long format with one item per line") |