diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2010-11-26 08:34:35 +0100 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2010-11-26 08:34:35 +0100 |
commit | b64851e3eb706b7b57503a0a605e0984e443747c (patch) | |
tree | 8ffc6ca4c5d767776c6b1bc0c333ec66f0827026 | |
parent | 2b8718b5453ae8e4ed42687acbb377511c36669a (diff) | |
download | bugseverywhere-b64851e3eb706b7b57503a0a605e0984e443747c.tar.gz |
Exclude --complete from completion.
-rw-r--r-- | libbe/command/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py index c6337ec..4814a17 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -335,7 +335,8 @@ class Command (object): def complete(self, argument=None, fragment=None): if argument == None: - ret = ['--%s' % o.name for o in self.options] + ret = ['--%s' % o.name for o in self.options + if o.name != 'complete'] if len(self.args) > 0 and self.args[0].completion_callback != None: ret.extend(self.args[0].completion_callback(self, argument, fragment)) return ret |