diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-11-10 16:24:32 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-11-10 16:24:32 +0000 |
commit | 84071b889670c1aa09360c4edd60572136fa69c3 (patch) | |
tree | 4fbb8d7f7874f407e7989199ca7729f009673363 /pykolab | |
parent | 2352c500125ec777308aff554541efc311245bfb (diff) | |
download | pykolab-84071b889670c1aa09360c4edd60572136fa69c3.tar.gz |
Exclude group commands from the upper-level list of commands.
Diffstat (limited to 'pykolab')
-rw-r--r-- | pykolab/cli/commands.py | 3 |
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: |