summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/commands.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-10 16:24:32 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-10 16:24:32 +0000
commit84071b889670c1aa09360c4edd60572136fa69c3 (patch)
tree4fbb8d7f7874f407e7989199ca7729f009673363 /pykolab/cli/commands.py
parent2352c500125ec777308aff554541efc311245bfb (diff)
downloadpykolab-84071b889670c1aa09360c4edd60572136fa69c3.tar.gz
Exclude group commands from the upper-level list of commands.
Diffstat (limited to 'pykolab/cli/commands.py')
-rw-r--r--pykolab/cli/commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/cli/commands.py b/pykolab/cli/commands.py
index 21c2bb4..7376234 100644
--- a/pykolab/cli/commands.py
+++ b/pykolab/cli/commands.py
@@ -85,6 +85,9 @@ def list_commands(*args, **kw):
_commands.sort()
for _command in _commands:
+ if __commands[_command].has_key('group'):
+ continue
+
if __commands[_command].has_key('function'):
# This is a top-level command
if not __commands[_command]['description'] == None: