From: jmc Date: Tue, 22 Jun 2021 20:12:17 +0000 (+0000) Subject: reduce verbosity in usage and make it match SYNOPSIS; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8b9d609178367c25f7d1f84be0e1b9e4eda88fbd;p=openbsd reduce verbosity in usage and make it match SYNOPSIS; ok millert --- diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 9e352f8f41e..52c2d57ef32 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.94 2020/02/11 12:42:02 schwarze Exp $ */ +/* $OpenBSD: crontab.c,v 1.95 2021/06/22 20:12:17 jmc Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -70,11 +70,7 @@ usage(const char *msg) warnx("usage error: %s", msg); fprintf(stderr, "usage: %s [-u user] file\n", __progname); fprintf(stderr, " %s [-e | -l | -r] [-u user]\n", __progname); - fprintf(stderr, - "\t\t(default operation is replace, per 1003.2)\n" - "\t-e\t(edit user's crontab)\n" - "\t-l\t(list user's crontab)\n" - "\t-r\t(delete user's crontab)\n"); + exit(EXIT_FAILURE); }