From efa17453a9f66d801f9de33bcc74236dc2d77be1 Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Thu, 18 Feb 2021 13:26:16 -0800 Subject: [PATCH] Update docs (#100) * add CTCP ACTION information to man page * add documentation for parameter to commands which support it * fix incorrect flag character for real name option * add verbosity option (-V) to man page * separate flag options in usage information Usually the format '[option1|option2]' means EITHER 'option1' OR 'option2' may be specified, but not both. Since the options '-v', '-V', and '-e' can all be given (and are all optional), the proper format is '[-v] [-V] [-e]'. --- kirc.1 | 23 ++++++++++++++++++++--- kirc.c | 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/kirc.1 b/kirc.1 index 7ce7dfe..a5f8d65 100644 --- a/kirc.1 +++ b/kirc.1 @@ -32,7 +32,7 @@ Specifies the channel(s) to JOIN (delimited by "," or "|") .BI \-n " nick" Specifies the NICK connection nickname .TP -.BI \-u " real" +.BI \-r " real" Specifies the users real name .TP .BI \-u " user" @@ -52,6 +52,10 @@ Specifies SASL EXTERNAL mechanism .TP .BI \-v Prints the version information to stderr, then exits +.TP +.BI \-V +Increases verbosity. Causes raw IRC messages to be printed when sent or +received. .SH COMMANDS .TP .BI / @@ -63,8 +67,21 @@ Set default message channel to .BI Send PRIVMSG to default message channel with as the content .TP -.BI @ -Send PRIVMSG to specified or +.BI @ " " +Send +.I +to specified +.I +or +.I +.TP +.BI @@ +Send CTCP ACTION containing +.I +to specified +.I +or +.I .SH AUTHOR Michael Czigler .SH BUGS diff --git a/kirc.c b/kirc.c index ff17f95..8b988ac 100644 --- a/kirc.c +++ b/kirc.c @@ -674,7 +674,7 @@ static void handleUserInput(struct State * l) { static void usage(void) { fputs("kirc [-s host] [-p port] [-c channel] [-n nick] [-r realname] \ -[-u username] [-k password] [-a token] [-x command] [-o path] [-e|v|V]\n", stderr); +[-u username] [-k password] [-a token] [-x command] [-o path] [-e] [-v] [-V]\n", stderr); exit(2); }