diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-03-07 08:49:06 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-03-07 08:49:06 +0000 |
commit | 2ad31d67a7f8622539002b60417c4a4fd57fb126 (patch) | |
tree | e4f52dbebad8b21f205c8bdf2721dd894fb8c330 /usr.sbin/ifstated | |
parent | 3da752c32baa37ea278671f349930f2630c65fde (diff) |
Document -v in ifstated.8 and usage() and use __progname in usage().
Fix from merith at redmoon dot openbsd dot de, with slightly modified wording.
Diffstat (limited to 'usr.sbin/ifstated')
-rw-r--r-- | usr.sbin/ifstated/ifstated.8 | 6 | ||||
-rw-r--r-- | usr.sbin/ifstated/ifstated.c | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/ifstated/ifstated.8 b/usr.sbin/ifstated/ifstated.8 index fb080b700f1..04c54acc75d 100644 --- a/usr.sbin/ifstated/ifstated.8 +++ b/usr.sbin/ifstated/ifstated.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ifstated.8,v 1.2 2004/02/05 09:01:25 jmc Exp $ +.\" $OpenBSD: ifstated.8,v 1.3 2004/03/07 08:49:05 mcbride Exp $ .\" .\" Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org> .\" @@ -23,7 +23,7 @@ .Sh SYNOPSIS .Nm ifstated .Bk -words -.Op Fl dhin +.Op Fl dhinv .Op Fl D Ar macro=value .Op Fl f Ar file .Ek @@ -65,6 +65,8 @@ Ignore initial interface states. .It Fl n Config test mode. Check config validity, then exit. +.It Fl v +Verbose mode. Use twice to further increase verbosity. .El .Sh FILES .Bl -tag -width "/etc/ifstated.conf" -compact diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c index 9ffbc1c3f05..6aaf21381e6 100644 --- a/usr.sbin/ifstated/ifstated.c +++ b/usr.sbin/ifstated/ifstated.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifstated.c,v 1.13 2004/03/07 08:37:49 mcbride Exp $ */ +/* $OpenBSD: ifstated.c,v 1.14 2004/03/07 08:49:05 mcbride Exp $ */ /* * Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org> @@ -80,7 +80,10 @@ void logit(int level, const char *fmt, ...); void usage(void) { - fprintf(stderr, "usage: ifstated [-dhinv] [-f config]\n"); + extern char* __progname; + + fprintf(stderr, "usage: %s [-dhinv] [-D macro=value] [-f config]\n", + __progname); exit(1); } |