From 43a44bfc6da8f4666c5dd6bc03c89713e6c4bd46 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 10 Jan 2015 20:07:08 +0000 Subject: rtcwake: add --list-modes Commit ece44f19f423408f576f348fed2845c876d72c6e missed freeze mode, which to a simple patch adding the missing argument but Karel pointed out it would be better to make the rtcwake to tell what arguments are supported so that possible changes end up to be automatically correct in bash completion. Proposed-by: Karel Zak Signed-off-by: Sami Kerola --- bash-completion/rtcwake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash-completion') diff --git a/bash-completion/rtcwake b/bash-completion/rtcwake index 51566a2a2..23c774c1f 100644 --- a/bash-completion/rtcwake +++ b/bash-completion/rtcwake @@ -12,7 +12,7 @@ _rtcwake_module() return 0 ;; '-m'|'--mode') - COMPREPLY=( $(compgen -W "standby mem disk off no on disable show" -- $cur) ) + COMPREPLY=( $(compgen -W "$(rtcwake --list-modes)" -- $cur) ) return 0 ;; '-s'|'--seconds') -- cgit v1.2.3-55-g7522