quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 3b3fdd00e2558ad5e794cc87b1cf5109bc7e6ac9
parent e46344e449feeeb42487ce14e58a65261ef6d26e
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun,  9 Jul 2017 11:28:42 +0200

Split synopsis to reflect the dual usage.

Diffstat:
quark.1 | 14++++++++------
quark.c | 6++++--
2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/quark.1 b/quark.1 @@ -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 diff --git a/quark.c b/quark.c @@ -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