From d2d80636c5ec4e623b751c973756a5e219dd156d Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Fri, 5 Mar 2021 09:41:17 +0100 Subject: [PATCH] Follow up on changes in 190c64b41581029c44162f724a06e60227cb526f While in review, `--cap-{add,drop}` where added in another place of the zsh completion. This commit makes the two places consistent. Signed-off-by: Paul Seyfert --- contrib/completion/zsh/_docker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 5e67b83623..ee4704776a 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -2023,8 +2023,8 @@ __docker_service_subcommand() { opts_help=("(: -)--help[Print usage]") opts_create_update=( - "($help)*--cap-add=[Add Linux capabilities]:capability: " - "($help)*--cap-drop=[Drop Linux capabilities]:capability: " + "($help)*--cap-add=[Add Linux capabilities]:capability: __docker_run_all_capabilities" + "($help)*--cap-drop=[Drop Linux capabilities]:capability: __docker_run_all_capabilities" "($help)*--constraint=[Placement constraints]:constraint: " "($help)--endpoint-mode=[Placement constraints]:mode:(dnsrr vip)" "($help)*"{-e=,--env=}"[Set environment variables]:env: "