Split synopsis to reflect the dual usage.

This commit is contained in:
Quentin Rameau 2017-07-09 11:28:42 +02:00 committed by Laslo Hunhold
parent e46344e449
commit 3b3fdd00e2
2 changed files with 12 additions and 8 deletions

14
quark.1
View file

@ -5,15 +5,17 @@
.Nd simple web server
.Sh SYNOPSIS
.Nm
.Op Fl v
.Oo
.Oo
.Op Fl h Ar host
.Op Fl p Ar port
.Oc
|
.Op Fl v
.Op Fl d Ar dir
.Op Fl l
.Op Fl L
.Op Fl u Ar user
.Op Fl g Ar group
.Nm
.Op Fl U Ar sockfile
.Oc
.Op Fl v
.Op Fl d Ar dir
.Op Fl l
.Op Fl L

View file

@ -912,8 +912,10 @@ getusock(char *udsname)
static void
usage(void)
{
die("usage: %s [-v] [[[-h host] [-p port]] | [-U sockfile]] "
"[-d dir] [-l] [-L] [-u user] [-g group]\n", argv0);
char *opts = "[-v] [-d dir] [-l] [-L] [-u user] [-g group]";
die("usage: %s [-h host] [-p port] %s\n"
" %s [-U sockfile] %s\n", argv0, opts, argv0, opts);
}
int