From 1ed774956406941d4812a3fb4493d2915f130f12 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 11 Jul 2014 08:25:20 -0400 Subject: shell-completion,man: beef up chassis completions and description Parameters to hostnamectl command are not optional and should not be marked as such in the man page. --- shell-completion/zsh/_localectl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell-completion/zsh/_localectl') diff --git a/shell-completion/zsh/_localectl b/shell-completion/zsh/_localectl index 87432da1dc..d8af4d1863 100644 --- a/shell-completion/zsh/_localectl +++ b/shell-completion/zsh/_localectl @@ -22,8 +22,8 @@ _localectl_set-locale() { _localectl_set-keymap() { local -a _keymaps - _keymaps=( ${(f)"$(_call_program locales "$service" list-keymaps)"} ) if (( CURRENT <= 3 )); then + _keymaps=( ${(f)"$(_call_program locales "$service" list-keymaps)"} ) _describe keymaps _keymaps else _message "no more options" @@ -77,7 +77,7 @@ _localectl_command() { if (( $+functions[_localectl_$cmd] )); then _localectl_$cmd else - _message "no more options" + _message "unknown localectl command: $words[1]" fi fi } -- cgit v1.2.3-54-g00ecf