diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-29 19:00:40 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-29 19:00:40 -0500 |
commit | 4372a17b4215df25b3da0b68daf4d6b490a8955c (patch) | |
tree | 4464d284fe0653701e43b3dc5a465dd14da056b3 /libbe/command/base.py | |
parent | d0fdc606a0420807cfbde0519d1807bd16f14c37 (diff) | |
download | bugseverywhere-4372a17b4215df25b3da0b68daf4d6b490a8955c.tar.gz |
Fixed up the completion helpers in libbe.command.util
This entailed a fairly thorough cleanup of libbe.util.id.
Remaining unimplemented completion helpers:
* complete_assigned()
* complete_extra_strings()
Since these would require scanning all (active?) bugs to compile
lists, and I was feeling lazy...
Diffstat (limited to 'libbe/command/base.py')
-rw-r--r-- | libbe/command/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py index cdb4043..2318aa7 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -62,6 +62,12 @@ class CommandInput (object): self.name = name self.help = help + def __str__(self): + return '<%s %s>' % (self.__class__.__name__, self.name) + + def __repr__(self): + return self.__str__() + class Argument (CommandInput): def __init__(self, metavar=None, default=None, type='string', optional=False, repeatable=False, |