Change force option to lower case.

No need for upper case to avoid parameters collision.
This commit is contained in:
Simon Lieb 2013-10-18 21:39:41 +02:00
parent 0a46876fd9
commit 743960f6e0
2 changed files with 4 additions and 4 deletions

4
slow.1
View file

@ -5,7 +5,7 @@ slow \- Slow down ouput
.B slow
.RB [ \-t
.IR time ]
.RB [ \-F ]
.RB [ \-f ]
.SH DESCRIPTION
.B slow
cat stdin to stdout with a usleep between each bytes.
@ -15,7 +15,7 @@ cat stdin to stdout with a usleep between each bytes.
specify sleep time between each bytes in micro-second.
Default value is 1 second.
.TP
.B \-F
.B \-f
force flushing after each bytes.
useful with buffered stdout like ttys.
.TP

4
slow.c
View file

@ -8,7 +8,7 @@
char *argv0;
void usage() {
fprintf(stderr, "usage: %s [-t usec] [-F]\n", argv0);
fprintf(stderr, "usage: %s [-t usec] [-f]\n", argv0);
exit(EXIT_FAILURE);
}
@ -22,7 +22,7 @@ int main(int argc, char *argv[]) {
case 't':
useconds = atoi(EARGF(usage()));
break;
case 'F':
case 'f':
flush = 1;
break;
default: