From 216e39db0bd3491ee3740f69a8f2afd49f76eb2f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 27 Nov 2008 10:16:18 -0500 Subject: 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 --- becommands/open.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'becommands/open.py') diff --git a/becommands/open.py b/becommands/open.py index 9a9667d..41db5e9 100644 --- a/becommands/open.py +++ b/becommands/open.py @@ -30,7 +30,9 @@ def execute(args, test=False): >>> print bd.bug_from_shortname("b").status open """ - options, args = get_parser().parse_args(args) + parser = get_parser() + options, args = parser.parse_args(args) + cmdutil.default_complete(options, args, parser) if len(args) == 0: raise cmdutil.UsageError, "Please specify a bug id." if len(args) > 1: -- cgit