projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8718b
)
Exclude --complete from completion.
author
Robert Lehmann
<mail@robertlehmann.de>
Fri, 26 Nov 2010 07:34:35 +0000
(08:34 +0100)
committer
Robert Lehmann
<mail@robertlehmann.de>
Fri, 26 Nov 2010 07:34:35 +0000
(08:34 +0100)
libbe/command/base.py
patch
|
blob
|
history
diff --git
a/libbe/command/base.py
b/libbe/command/base.py
index c6337ec904ce3e3b012792859a05c4ebfdbf63f6..4814a176d26e55cdb5ed935a973d121fe4ebe135 100644
(file)
--- 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