[hackers] [quark] Split synopsis to reflect the dual usage. || Quentin Rameau
commit 3b3fdd00e2558ad5e794cc87b1cf5109bc7e6ac9
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sun Jul 9 11:28:42 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Tue Jul 11 14:09:27 2017 +0200
Split synopsis to reflect the dual usage.
diff --git a/quark.1 b/quark.1
index f29618a..240a0e4 100644
--- a/quark.1
+++ b/quark.1
_AT_@ -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
index bf0c6f9..94532de 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -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
Received on Tue Jul 11 2017 - 15:03:01 CEST
This archive was generated by hypermail 2.3.0
: Tue Jul 11 2017 - 15:13:26 CEST