summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorSami Kerola2015-01-10 19:31:29 +0100
committerKarel Zak2015-06-29 13:39:37 +0200
commita10ce9a3e5090f9eab0b34618280d7177568d884 (patch)
treea2334fbbbfa3265d6eb98a1b937528add36502ee /bash-completion
parentrtcwake: improve read_clock_mode() (diff)
downloadkernel-qcow2-util-linux-a10ce9a3e5090f9eab0b34618280d7177568d884.tar.gz
kernel-qcow2-util-linux-a10ce9a3e5090f9eab0b34618280d7177568d884.tar.xz
kernel-qcow2-util-linux-a10ce9a3e5090f9eab0b34618280d7177568d884.zip
rtcwake: add human readable --date timestamp format
Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/rtcwake7
1 files changed, 6 insertions, 1 deletions
diff --git a/bash-completion/rtcwake b/bash-completion/rtcwake
index d7d142701..51566a2a2 100644
--- a/bash-completion/rtcwake
+++ b/bash-completion/rtcwake
@@ -23,11 +23,16 @@ _rtcwake_module()
COMPREPLY=( $(compgen -W "time_t" -- $cur) )
return 0
;;
+ '--date')
+ COMPREPLY=( $(compgen -W "YYYYMMDDhhmmss" -- $cur) )
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
esac
- OPTS="--device
+ OPTS=" --date
+ --device
--dry-run
--local
--mode