From f10d03c3d16eea599ecbd395c2e357f90833f729 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Sun, 18 Feb 2007 23:59:04 +0000 Subject: tidy up synopsis and usage(); --- usr.sbin/cron/cron.8 | 13 ++++++++++--- usr.sbin/cron/cron.c | 6 +++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/usr.sbin/cron/cron.8 b/usr.sbin/cron/cron.8 index ed25d1a0426..cf39eda89f5 100644 --- a/usr.sbin/cron/cron.8 +++ b/usr.sbin/cron/cron.8 @@ -17,7 +17,7 @@ .\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" -.\" $OpenBSD: cron.8,v 1.27 2005/11/30 11:18:28 jmc Exp $ +.\" $OpenBSD: cron.8,v 1.28 2007/02/18 23:59:03 jmc Exp $ .\" .Dd July 6, 2002 .Dt CRON 8 @@ -27,9 +27,16 @@ .Nd clock daemon .Sh SYNOPSIS .Nm cron -.Op Fl l Ar load_avg .Op Fl n -.Op Fl x Ar [ext,sch,proc,pars,load,misc,test] +.Op Fl l Ar load_avg +.Oo +.Fl x +.Sm off +.Oo Ar ext , sch , proc , +.Ar pars , load , misc , test +.Oc +.Sm on +.Oc .Sh DESCRIPTION The .Nm diff --git a/usr.sbin/cron/cron.c b/usr.sbin/cron/cron.c index e7b9082793e..b30058e583a 100644 --- a/usr.sbin/cron/cron.c +++ b/usr.sbin/cron/cron.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cron.c,v 1.38 2005/11/15 07:02:37 miod Exp $ */ +/* $OpenBSD: cron.c,v 1.39 2007/02/18 23:59:03 jmc Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static const char rcsid[] = "$OpenBSD: cron.c,v 1.38 2005/11/15 07:02:37 miod Exp $"; +static const char rcsid[] = "$OpenBSD: cron.c,v 1.39 2007/02/18 23:59:03 jmc Exp $"; #endif #define MAIN_PROGRAM @@ -55,7 +55,7 @@ usage(void) { const char **dflags; #endif - fprintf(stderr, "usage: %s [-l load_avg] [-n] [-x [", ProgramName); + fprintf(stderr, "usage: %s [-n] [-l load_avg] [-x [", ProgramName); #if DEBUGGING for (dflags = DebugFlagNames; *dflags; dflags++) fprintf(stderr, "%s%s", *dflags, dflags[1] ? "," : "]"); -- cgit v1.2.3