summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-10-26 11:40:15 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-10-26 11:40:15 -0400
commitdfbe317a7cc52b691723698b4464b260996ab425 (patch)
tree85df59946767d98d80a9bf4d0cab367ab4aae3c7 /docs
parent2cc1b90eba33fae1bf8d06a49bb9f64b662569ad (diff)
downloadcmd2-git-dfbe317a7cc52b691723698b4464b260996ab425.tar.gz
Refactored filtering in path_complete to use a function
Diffstat (limited to 'docs')
-rw-r--r--docs/freefeatures.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst
index 0a95a829..7864f146 100644
--- a/docs/freefeatures.rst
+++ b/docs/freefeatures.rst
@@ -350,4 +350,4 @@ path completion of directories only for this command by adding a line of code si
which inherits from ``cmd2.Cmd``::
# Make sure you have an "import functools" somewhere at the top
- complete_bar = functools.partialmethod(cmd2.Cmd.path_complete, dir_only=True)
+ complete_bar = functools.partialmethod(cmd2.Cmd.path_complete, path_filter=os.path.isdir)