Change force option to lower case.
No need for upper case to avoid parameters collision.
This commit is contained in:
parent
0a46876fd9
commit
743960f6e0
2 changed files with 4 additions and 4 deletions
4
slow.1
4
slow.1
|
|
@ -5,7 +5,7 @@ slow \- Slow down ouput
|
||||||
.B slow
|
.B slow
|
||||||
.RB [ \-t
|
.RB [ \-t
|
||||||
.IR time ]
|
.IR time ]
|
||||||
.RB [ \-F ]
|
.RB [ \-f ]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B slow
|
.B slow
|
||||||
cat stdin to stdout with a usleep between each bytes.
|
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.
|
specify sleep time between each bytes in micro-second.
|
||||||
Default value is 1 second.
|
Default value is 1 second.
|
||||||
.TP
|
.TP
|
||||||
.B \-F
|
.B \-f
|
||||||
force flushing after each bytes.
|
force flushing after each bytes.
|
||||||
useful with buffered stdout like ttys.
|
useful with buffered stdout like ttys.
|
||||||
.TP
|
.TP
|
||||||
|
|
|
||||||
4
slow.c
4
slow.c
|
|
@ -8,7 +8,7 @@
|
||||||
char *argv0;
|
char *argv0;
|
||||||
|
|
||||||
void usage() {
|
void usage() {
|
||||||
fprintf(stderr, "usage: %s [-t usec] [-F]\n", argv0);
|
fprintf(stderr, "usage: %s [-t usec] [-f]\n", argv0);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -22,7 +22,7 @@ int main(int argc, char *argv[]) {
|
||||||
case 't':
|
case 't':
|
||||||
useconds = atoi(EARGF(usage()));
|
useconds = atoi(EARGF(usage()));
|
||||||
break;
|
break;
|
||||||
case 'F':
|
case 'f':
|
||||||
flush = 1;
|
flush = 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue