diff options
author | W. Trevor King <wking@drexel.edu> | 2008-11-27 10:16:18 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-11-27 10:16:18 -0500 |
commit | 216e39db0bd3491ee3740f69a8f2afd49f76eb2f (patch) | |
tree | 5fc519ba693a4819f725de6e5b4d3de6fea1deb8 /becommands/help.py | |
parent | 8e989347bdefab6a77e32072265fa0bd8c143c43 (diff) | |
download | bugseverywhere-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/help.py')
-rw-r--r-- | becommands/help.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/becommands/help.py b/becommands/help.py index 1c99af5..e228eed 100644 --- a/becommands/help.py +++ b/becommands/help.py @@ -26,11 +26,14 @@ def execute(args): <BLANKLINE> Options: -h, --help Print a help message + --complete Print a list of available completions <BLANKLINE> Print help for specified command or list of all commands. <BLANKLINE> """ - 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) > 1: raise cmdutil.UsageError("Too many arguments.") if len(args) == 0: |