aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/assign.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-27 10:16:18 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-27 10:16:18 -0500
commit216e39db0bd3491ee3740f69a8f2afd49f76eb2f (patch)
tree5fc519ba693a4819f725de6e5b4d3de6fea1deb8 /becommands/assign.py
parent8e989347bdefab6a77e32072265fa0bd8c143c43 (diff)
downloadbugseverywhere-216e39db0bd3491ee3740f69a8f2afd49f76eb2f.tar.gz
Command completion simplified and working for list, dummies for other cmds.
All the other commands currently use default_complete(), which has no effect other than catching the --complete option and effectively aborting execution. This closes 8e1bbda4-35b6-4579-849d-117b1596ee99
Diffstat (limited to 'becommands/assign.py')
-rw-r--r--becommands/assign.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/becommands/assign.py b/becommands/assign.py
index b00c5c2..9869350 100644
--- a/becommands/assign.py
+++ b/becommands/assign.py
@@ -41,7 +41,9 @@ def execute(args, test=False):
>>> bd.bug_from_shortname("a").assigned is None
True
"""
- options, args = get_parser().parse_args(args)
+ parser = get_parser()
+ options, args = parser.parse_args(args)
+ cmdutil.default_complete(options, args, parser)
assert(len(args) in (0, 1, 2))
if len(args) == 0:
raise cmdutil.UsageError("Please specify a bug id.")