diff options
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") |