lchat

A line oriented chat front end for ii.
git clone git://git.suckless.org/lchat
Log | Files | Refs

commit cd2989ce0b4aefe3ad24ca70010906560133f7c9
parent a6e5a69166f668898bfc0731b634322bb277fe5a
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date:   Sat,  7 Nov 2015 05:28:31 +0100

rename -H to -n for compatibility to tail(1)

Diffstat:
lchat.1 | 8++++----
lchat.c | 6+++---
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lchat.1 b/lchat.1 @@ -7,7 +7,7 @@ .Sh SYNOPSIS .Nm .Op Fl eh -.Op Fl H Ar lines +.Op Fl n Ar lines .Op Fl p Ar prompt .Op Fl t Ar title .Op Fl i Ar in @@ -28,10 +28,10 @@ The options are as follows: Allow to enter empty lines. .It Fl h Shows usage text. -.It Fl H Ar lines -Show +.It Fl n Ar lines +Shows .Ar lines -of chat history. +of chat history at startup. .It Fl p Ar prompt Use .Ar prompt diff --git a/lchat.c b/lchat.c @@ -57,7 +57,7 @@ line_output(struct slackline *sl, char *file) static void usage(void) { - fprintf(stderr, "lchar [-eh] [-H lines] [-p prompt] [-t title] [-i in]" + fprintf(stderr, "lchar [-eh] [-n lines] [-p prompt] [-t title] [-i in]" " [-o out] [directory]\n"); exit(EXIT_FAILURE); } @@ -81,9 +81,9 @@ main(int argc, char *argv[]) char *out_file = NULL; FILE *tail_fh; - while ((ch = getopt(argc, argv, "H:i:eo:p:t:h")) != -1) { + while ((ch = getopt(argc, argv, "n:i:eo:p:t:h")) != -1) { switch (ch) { - case 'H': + case 'n': errno = 0; history_len = strtoull(optarg, NULL, 0); if (errno != 0)