Module Name:    src
Committed By:   wiz
Date:           Sat Apr 24 07:52:08 UTC 2021

Modified Files:
        src/usr.sbin/wsfontload: wsfontload.8 wsfontload.c

Log Message:
wsfontload: make -l mode a separate line in the usage

Document it in the manpage.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/wsfontload/wsfontload.8
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/wsfontload/wsfontload.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/wsfontload/wsfontload.8
diff -u src/usr.sbin/wsfontload/wsfontload.8:1.27 src/usr.sbin/wsfontload/wsfontload.8:1.28
--- src/usr.sbin/wsfontload/wsfontload.8:1.27	Thu May 30 14:58:51 2019
+++ src/usr.sbin/wsfontload/wsfontload.8	Sat Apr 24 07:52:07 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: wsfontload.8,v 1.27 2019/05/30 14:58:51 pgoyette Exp $
+.\"	$NetBSD: wsfontload.8,v 1.28 2021/04/24 07:52:07 wiz Exp $
 .\"
 .\" Copyright (c) 1999, 2001
 .\" 	Matthias Drochner.  All rights reserved.
@@ -24,7 +24,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd May 30, 2019
+.Dd April 24, 2021
 .Dt WSFONTLOAD 8
 .Os
 .Sh NAME
@@ -39,6 +39,7 @@
 .Op Fl N Ar name
 .Op Fl w Ar width
 .Op Ar fontfile
+.Nm Fl l
 .Sh DESCRIPTION
 The
 .Nm
@@ -91,6 +92,8 @@ Default is
 .It Fl h Ar height
 Sets the height of a font character in pixels.
 Default is 16.
+.It Fl l
+Print a list of available fonts.
 .It Fl N Ar name
 Specifies a name which can be used later to refer to the font.
 If none is given, the

Index: src/usr.sbin/wsfontload/wsfontload.c
diff -u src/usr.sbin/wsfontload/wsfontload.c:1.22 src/usr.sbin/wsfontload/wsfontload.c:1.23
--- src/usr.sbin/wsfontload/wsfontload.c:1.22	Sat Apr 24 00:49:26 2021
+++ src/usr.sbin/wsfontload/wsfontload.c	Sat Apr 24 07:52:07 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: wsfontload.c,v 1.22 2021/04/24 00:49:26 macallan Exp $ */
+/* $NetBSD: wsfontload.c,v 1.23 2021/04/24 07:52:07 wiz Exp $ */
 
 /*
  * Copyright (c) 1999
@@ -76,8 +76,10 @@ usage(void)
 {
 
 	(void)fprintf(stderr,
-		"usage: %s [-Bbvl] [-e encoding] [-f wsdev] [-h height]"
-		" [-N name] [-w width] [fontfile]\n",
+		"usage: %s [-Bbv] [-e encoding] [-f wsdev] [-h height]"
+		" [-N name] [-w width] [fontfile]\n"
+		"       %s -l\n",
+		      getprogname(),
 		      getprogname());
 	exit(1);
 }

Reply via email to