From b64851e3eb706b7b57503a0a605e0984e443747c Mon Sep 17 00:00:00 2001 From: Robert Lehmann Date: Fri, 26 Nov 2010 08:34:35 +0100 Subject: [PATCH] Exclude --complete from completion. --- libbe/command/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2