From 1b850e286810a17668ccfa4aedbab6d6077608f8 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 5 Jun 2013 19:25:29 +0200 Subject: hostinfo: add --only-names option With the --only-names option only the hostnames of the matching hosts are printed. This is default with negative match (there is nothing to print if the key does not exists). --- contrib/bash-completion | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/bash-completion b/contrib/bash-completion index 5315d83..333bf0e 100644 --- a/contrib/bash-completion +++ b/contrib/bash-completion @@ -49,7 +49,8 @@ _hostinfo() { COMPREPLY=( $( compgen -W "-o --oneline -f --file -k --keys -h -? --help -p --path -n --nospaces -l --hosts -s --short - -v --verbose $_completion" -- $cur ) ) + -v --verbose --only-names + $_completion" -- $cur ) ) fi } complete -F _hostinfo hostinfo -- cgit v1.2.3-1-g7c22