]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/hwclock.c
hwclock: make debug implicit for test mode.
[thirdparty/util-linux.git] / sys-utils / hwclock.c
index 6a23bf2b0c85683adf59ad7a89d8bbcf3ff73891..36b6204b01dde4457af4221b82c0157029f28a98 100644 (file)
@@ -1083,7 +1083,7 @@ usage(void)
               "     --noadjfile      do not use %1$s\n"), _PATH_ADJTIME);
        printf(_(
               "     --adjfile <file> use an alternate file to %1$s\n"), _PATH_ADJTIME);
-       puts(_("     --test           dry run; use -D to view what would have happened"));
+       puts(_("     --test           dry run; implies --debug"));
        puts(_(" -D, --debug          display more details"));
        fputs(USAGE_SEPARATOR, stdout);
        printf(USAGE_HELP_OPTIONS(22));
@@ -1251,6 +1251,7 @@ int main(int argc, char **argv)
                        break;
                case OPT_TEST:
                        ctl.testing = 1;        /* --test */
+                       ctl.debug++;
                        break;
                case OPT_DATE:
                        ctl.date_opt = optarg;  /* --date */