From d606854082f0c2123db480f17bd63050e31d89ac Mon Sep 17 00:00:00 2001 From: jmc Date: Thu, 6 Apr 2017 17:33:39 +0000 Subject: [PATCH] document -=; while here, simplify things so that we don;t add a separate usage every time we think of a new way to use this; -= bits from anton lindqvist ok tb tom --- sbin/wsconsctl/wsconsctl.8 | 12 +++++------- sbin/wsconsctl/wsconsctl.c | 7 +++---- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/sbin/wsconsctl/wsconsctl.8 b/sbin/wsconsctl/wsconsctl.8 index 631497d4732..bb706026154 100644 --- a/sbin/wsconsctl/wsconsctl.8 +++ b/sbin/wsconsctl/wsconsctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wsconsctl.8,v 1.23 2008/08/04 07:32:51 sobrado Exp $ +.\" $OpenBSD: wsconsctl.8,v 1.24 2017/04/06 17:33:39 jmc Exp $ .\" $NetBSD: wsconsctl.8,v 1.5 1999/09/12 18:47:11 kleink Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\"/ -.Dd $Mdocdate: August 4 2008 $ +.Dd $Mdocdate: April 6 2017 $ .Dt WSCONSCTL 8 .Os .Sh NAME @@ -45,10 +45,6 @@ .Op Fl n .Op Fl f Ar file .Ar name Ns = Ns Ar value ... -.Nm wsconsctl -.Op Fl n -.Op Fl f Ar file -.Ar name Ns += Ns Ar value ... .Sh DESCRIPTION The .Nm @@ -77,7 +73,9 @@ The value can be specified as either an absolute, by using the symbol, or as a relative value, by using the .Ql += -symbol. +or +.Ql -= +symbols. See the .Sx EXAMPLES section for more details. diff --git a/sbin/wsconsctl/wsconsctl.c b/sbin/wsconsctl/wsconsctl.c index 38b13bdf78e..d821f19df44 100644 --- a/sbin/wsconsctl/wsconsctl.c +++ b/sbin/wsconsctl/wsconsctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsconsctl.c,v 1.29 2015/05/08 19:12:51 miod Exp $ */ +/* $OpenBSD: wsconsctl.c,v 1.30 2017/04/06 17:33:39 jmc Exp $ */ /* $NetBSD: wsconsctl.c,v 1.2 1998/12/29 22:40:20 hannken Exp $ */ /*- @@ -71,9 +71,8 @@ usage(void) fprintf(stderr, "usage: %s [-an]\n" " %s [-n] [-f file] name ...\n" - " %s [-n] [-f file] name=value ...\n" - " %s [-n] [-f file] name+=value ...\n", - __progname, __progname, __progname, __progname); + " %s [-n] [-f file] name=value ...\n", + __progname, __progname, __progname); exit(1); } -- 2.20.1