From: Robert Lehmann Date: Fri, 26 Nov 2010 07:34:35 +0000 (+0100) Subject: Exclude --complete from completion. X-Git-Tag: 1.1.0~245^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b64851e3eb706b7b57503a0a605e0984e443747c;p=be.git Exclude --complete from completion. --- 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