updated man page

This commit is contained in:
arg@10ksloc.org 2006-07-20 10:03:27 +02:00
parent 1871cf41b3
commit 37ca48e770
2 changed files with 29 additions and 2 deletions

26
sic.1
View File

@ -3,6 +3,17 @@
sic \- simple irc client
.SH SYNOPSIS
.B sic
.RB [ \-s
.IR server ]
.RB [ \-p
.IR port ]
.RB [ \-n
.IR nick ]
.RB [ \-k
.IR keyword ]
.RB [ \-f
.IR fullname ]
.RB \-v
.RB [ \-v ]
.SH DESCRIPTION
.B sic
@ -12,6 +23,21 @@ also all channel traffic into one output, that you don't have to switch
different channel buffers, that's actually a feature.
.SH OPTIONS
.TP
.BI \-s " server"
Overrides the default server (irc.oftc.net)
.TP
.BI \-p " port"
Overrides the default port (6667)
.TP
.BI \-n " nickname"
Override the default nick ($USER)
.TP
.BI \-k " keyword"
Specifies the keyword to authenticate your nick on the server
.TP
.BI \-f " fullname"
Specify the real name (default is $USER)
.TP
.BI \-v
Prints version information to standard output, then exits.
.SH COMMANDS

5
sic.c
View File

@ -21,8 +21,8 @@ enum { Tnick, Tuser, Tcmd, Tchan, Targ, Ttext, Tlast };
/* CUSTOMIZE */
static char *server = "irc.oftc.net";
static int port = 6667;
static char *nick = "arg";
static char *fullname = "Anselm R. Garbe";
static char *nick = NULL;
static char *fullname = NULL;
static char *password = NULL;
static char bufin[MAXMSG], bufout[MAXMSG];
@ -242,6 +242,7 @@ main(int argc, char *argv[])
char ping[256];
fd_set rd;
nick = fullname = getenv("USER");
for(i = 1; (i < argc) && (argv[i][0] == '-'); i++) {
switch (argv[i][1]) {
default: