diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2007-04-20 07:30:17 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2007-04-20 07:30:17 +0000 |
commit | f153635f80e6557c158cca652fb9d39fc604ac98 (patch) | |
tree | 71177e40b8ed2e312c6781b99c83d3d953842030 /sbin | |
parent | 2c569ece288bd18f0d382a17deb045a65e00d34f (diff) |
no whitespace allowed between -o and its argument, so update doc/usage()
to reflect this;
whilst there i had to wrap -t in Xo/Xc to stop line split,
and i zapped some extra whitespace in usage();
fixes user/5441 from sthen
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl.8 | 20 | ||||
-rw-r--r-- | sbin/pfctl/pfctl.c | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/sbin/pfctl/pfctl.8 b/sbin/pfctl/pfctl.8 index d3b7d502194..a8ca21df8ef 100644 --- a/sbin/pfctl/pfctl.8 +++ b/sbin/pfctl/pfctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pfctl.8,v 1.129 2007/03/21 03:01:31 mcbride Exp $ +.\" $OpenBSD: pfctl.8,v 1.130 2007/04/20 07:30:16 jmc Exp $ .\" .\" Copyright (c) 2001 Kjell Wooding. All rights reserved. .\" @@ -42,14 +42,14 @@ .Op Fl i Ar interface .Op Fl K Ar host | network .Op Fl k Ar host | network -.Op Fl o Op Ar level +.Op Fl o Ns Op Ar level .Op Fl p Ar device .Op Fl s Ar modifier -.Oo -.Fl t Ar table +.Xo +.Oo Fl t Ar table .Fl T Ar command -.Op Ar address ... -.Oc +.Op Ar address ... Oc +.Xc .Op Fl x Ar level .Ek .Sh DESCRIPTION @@ -296,16 +296,16 @@ Do not actually load rules, just parse them. .It Fl O Load only the options present in the rule file. Other rules and options are ignored. -.It Fl o Op Ar level +.It Fl o Ns Op Ar level Control the ruleset optimizer, overriding any rule file settings. .Pp .Bl -tag -width xxxxxxxxxxxx -compact -.It Fl o Cm none +.It Fl o Ns Cm none Disable the ruleset optimizer. -.It Fl o Cm basic +.It Fl o Ns Cm basic Enable basic ruleset optimizations. This is the default behaviour. -.It Fl o Cm profile +.It Fl o Ns Cm profile Enable basic ruleset optimizations with profiling. .El .Pp diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 123475a0ddd..40d03e0344b 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.263 2007/03/21 03:01:31 mcbride Exp $ */ +/* $OpenBSD: pfctl.c,v 1.264 2007/04/20 07:30:16 jmc Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -231,8 +231,8 @@ usage(void) fprintf(stderr, "usage: %s [-AdeghmNnOqRrvz] ", __progname); fprintf(stderr, "[-a anchor] [-D macro=value] [-F modifier]\n"); fprintf(stderr, "\t[-f file] [-i interface] [-K host | network] "); - fprintf(stderr, "[-k host | network ]\n"); - fprintf(stderr, "\t[-o [level]] [-p device] [-s modifier ]\n"); + fprintf(stderr, "[-k host | network]\n"); + fprintf(stderr, "\t[-o[level]] [-p device] [-s modifier]\n"); fprintf(stderr, "\t[-t table -T command [address ...]] [-x level]\n"); exit(1); } |