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

Document it in the manpage.
This commit is contained in:
wiz 2021-04-24 07:52:07 +00:00
parent 4986201e82
commit dfc8604311
2 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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);
}