summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-10-26 13:10:20 -0400
committerGitHub <noreply@github.com>2018-10-26 13:10:20 -0400
commitbb6cc1d618745ffe43b1bfabf93efaf592b2c3ad (patch)
treef2a70b762442baaaa956cb1338a5c74d9bc0aa9a /examples/python_scripting.py
parent759468b337d7ad6304c9f26ce0dc481d20588c8f (diff)
parentbb9e5e5e3d64bfaf2ee67f056e5d0df405a2b8f3 (diff)
downloadcmd2-git-bb6cc1d618745ffe43b1bfabf93efaf592b2c3ad.tar.gz
Merge branch 'master' into document_completion
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-xexamples/python_scripting.py2
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")