commit 5bd50577a911f806cc09d909a31605d2461df53e
parent 00698e45ead4ee1cec0e17b9f209dc4332c6f07b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 2 Sep 2022 12:23:40 +0200
ii: fix mistake in usage, the host is actually mandatory
Reported by Petr Vaněk <arkamar@atlas.cz>, thanks!
Diffstat:
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/ii.1 b/ii.1
@@ -21,10 +21,8 @@ and ii creates a new channel directory with in and out file.
.IR host >
.RB [ \-p
.IR port ]
-|
-.RB < \-u
-.IR sockname >
-
+.RB [ \-u
+.IR sockname ]
.RB [ \-i
.IR ircdir ]
.RB [ \-n
diff --git a/ii.c b/ii.c
@@ -98,7 +98,7 @@ die(const char *fmt, ...)
static void
usage(void)
{
- die("usage: %s <-s host> [-p <port>] | <-u sockname>\n"
+ die("usage: %s <-s host> [-p <port>] [-u sockname]\n"
" [-i <ircdir>] "
" [-n <nick>] [-f <fullname>] [-k <password>]\n", argv0);
}