]> granicus.if.org Git - cronie/commitdiff
cronnext: use same style in usage() with other commands
authorSami Kerola <kerolasa@iki.fi>
Sun, 11 Jun 2017 13:49:53 +0000 (14:49 +0100)
committerTomáš Mráz <t8m@users.noreply.github.com>
Mon, 10 Jul 2017 16:13:14 +0000 (18:13 +0200)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
src/cronnext.c

index 47c983b4f7b5bf48d82e2cea3832981bd2ac5a60..b4608505f9f3e2789bcc75d6a1410ad804e05e9f 100644 (file)
@@ -248,13 +248,15 @@ time_t cronnext(time_t start,
 void usage() {
        fprintf(stderr, "Find the time of the next scheduled cron job.\n");
        fprintf(stderr, "Usage:\n");
-       fprintf(stderr, "\tcronnext [-i users] [-e users] [-s] [-t time] [-v] [-h]\n");
-       fprintf(stderr, "\t\t-i users\tinclude only the crontab of these users\n");
-       fprintf(stderr, "\t\t-e users\texclude the crontab of these users\n");
-       fprintf(stderr, "\t\t-s\t\tdo not include the system crontab\n");
-       fprintf(stderr, "\t\t-t time\t\tstart from this time (seconds since epoch)\n");
-       fprintf(stderr, "\t\t-v\t\tverbose mode\n");
-       fprintf(stderr, "\t\t-h\t\tthis help\n");
+       fprintf(stderr, " cronnext [options]\n");
+       fprintf(stderr, "\n");
+       fprintf(stderr, "Options:\n");
+       fprintf(stderr, " -i users  include only the crontab of these users\n");
+       fprintf(stderr, " -e users  exclude the crontab of these users\n");
+       fprintf(stderr, " -s        do not include the system crontab\n");
+       fprintf(stderr, " -t time   start from this time (seconds since epoch)\n");
+       fprintf(stderr, " -v        verbose mode\n");
+       fprintf(stderr, " -h        this help\n");
 }
 
 /*