summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorSami Kerola2015-01-10 21:07:08 +0100
committerKarel Zak2015-06-29 13:39:37 +0200
commit43a44bfc6da8f4666c5dd6bc03c89713e6c4bd46 (patch)
tree439991ec60e400dfb55eab562146f2c70efe97af /bash-completion
parentrtcwake: do not overwrite device name (diff)
downloadkernel-qcow2-util-linux-43a44bfc6da8f4666c5dd6bc03c89713e6c4bd46.tar.gz
kernel-qcow2-util-linux-43a44bfc6da8f4666c5dd6bc03c89713e6c4bd46.tar.xz
kernel-qcow2-util-linux-43a44bfc6da8f4666c5dd6bc03c89713e6c4bd46.zip
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 <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/rtcwake2
1 files changed, 1 insertions, 1 deletions
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')