From 2afe9f0f947f826c7508710c09fab88543e0d4c2 Mon Sep 17 00:00:00 2001 From: Peter Nagy Jr Date: Fri, 12 Aug 2016 14:42:50 +0200 Subject: [PATCH] fix bash completion --- click/_bashcomplete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/click/_bashcomplete.py b/click/_bashcomplete.py index d97b66a9ef..43d915bca0 100644 --- a/click/_bashcomplete.py +++ b/click/_bashcomplete.py @@ -31,7 +31,7 @@ def get_completion_script(prog_name, complete_var): def resolve_ctx(cli, prog_name, args): ctx = cli.make_context(prog_name, args, resilient_parsing=True) while ctx.args + ctx.protected_args and isinstance(ctx.command, MultiCommand): - a = ctx.args + ctx.protected_args + a = ctx.protected_args + ctx.args cmd = ctx.command.get_command(ctx, a[0]) if cmd is None: return None