diff options
author | Sami Kerola | 2017-09-04 00:34:07 +0200 |
---|---|---|
committer | Karel Zak | 2017-09-05 14:34:53 +0200 |
commit | 40191b5f95d51ace82c5fca05612b103df3259eb (patch) | |
tree | 44714086ecfd5c457757e38697d3e130221a2405 | |
parent | hwclock: update usage() (diff) | |
download | kernel-qcow2-util-linux-40191b5f95d51ace82c5fca05612b103df3259eb.tar.gz kernel-qcow2-util-linux-40191b5f95d51ace82c5fca05612b103df3259eb.tar.xz kernel-qcow2-util-linux-40191b5f95d51ace82c5fca05612b103df3259eb.zip |
hwclock: add -a that is short of --adjust to manual page and usage
In same go use -V as return value of --version from getopts_long().
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r-- | sys-utils/hwclock.8.in | 2 | ||||
-rw-r--r-- | sys-utils/hwclock.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/hwclock.8.in b/sys-utils/hwclock.8.in index 8bdc841f2..a3cbc015e 100644 --- a/sys-utils/hwclock.8.in +++ b/sys-utils/hwclock.8.in @@ -34,7 +34,7 @@ was added. See their respective descriptions below. The following functions are mutually exclusive, only one can be given at a time. If none is given, the default is \fB\-\-show\fR. .TP -.B \-\-adjust +.B \-a, \-\-adjust Add or subtract time from the Hardware Clock to account for systematic drift since the last time the clock was set or adjusted. See the discussion below, under diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index bf5459783..9fa26bd0b 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1076,7 +1076,7 @@ usage(void) puts(_(" -s, --hctosys set the system time from the RTC")); puts(_(" -w, --systohc set the RTC from the system time")); puts(_(" --systz send timescale configurations to the kernel")); - puts(_(" --adjust adjust the RTC to account for systematic drift")); + puts(_(" -a, --adjust adjust the RTC to account for systematic drift")); #if defined(__linux__) && defined(__alpha__) puts(_(" --getepoch display the RTC epoch")); puts(_(" --setepoch set the RTC epoch according to --epoch")); @@ -1145,7 +1145,7 @@ int main(int argc, char **argv) { "show", no_argument, NULL, 'r' }, { "hctosys", no_argument, NULL, 's' }, { "utc", no_argument, NULL, 'u' }, - { "version", no_argument, NULL, 'v' }, + { "version", no_argument, NULL, 'V' }, { "systohc", no_argument, NULL, 'w' }, { "debug", no_argument, NULL, 'D' }, { "set", no_argument, NULL, OPT_SET }, |