summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
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')