commit 5bd50577a911f806cc09d909a31605d2461df53e Author: Hiltjo Posthuma <hil...@codemadness.org> AuthorDate: Fri Sep 2 12:23:40 2022 +0200 Commit: Hiltjo Posthuma <hil...@codemadness.org> CommitDate: Fri Sep 2 12:23:40 2022 +0200
ii: fix mistake in usage, the host is actually mandatory Reported by Petr VanÄk <arka...@atlas.cz>, thanks! diff --git a/ii.1 b/ii.1 index e812782..805ab7e 100644 --- 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 index 1cd6056..0856e8f 100644 --- 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); }