]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: add -a that is short of --adjust to manual page and usage
authorSami Kerola <kerolasa@iki.fi>
Sun, 3 Sep 2017 22:34:07 +0000 (23:34 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Sep 2017 12:34:53 +0000 (14:34 +0200)
In same go use -V as return value of --version from getopts_long().

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/hwclock.8.in
sys-utils/hwclock.c

index 8bdc841f244f96e1a7d9f80298438528b3d4536e..a3cbc015e66f9be5c709d122eddc4936918c14fa 100644 (file)
@@ -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
index bf5459783ac42096983af375cdd6477d615c0e3d..9fa26bd0bc478889efdcb52dd13078dafc55f0d2 100644 (file)
@@ -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        },