From 667dead8b7edfd2704ee75f59f36f4e7e3d0410d Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Fri, 17 Nov 2017 18:45:05 +0100 Subject: [PATCH] Add bash completion for `logs --until` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 990934b610..5a2a65ee1c 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1487,17 +1487,17 @@ _docker_container_kill() { _docker_container_logs() { case "$prev" in - --since|--tail) + --since|--tail|--until) return ;; esac case "$cur" in -*) - COMPREPLY=( $( compgen -W "--details --follow -f --help --since --tail --timestamps -t" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--details --follow -f --help --since --tail --timestamps -t --until" -- "$cur" ) ) ;; *) - local counter=$(__docker_pos_first_nonflag '--since|--tail') + local counter=$(__docker_pos_first_nonflag '--since|--tail|--until') if [ "$cword" -eq "$counter" ]; then __docker_complete_containers_all fi