Add manpage.
This commit is contained in:
parent
841545aa4d
commit
0a46876fd9
3 changed files with 23 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -31,7 +31,7 @@ clean:
|
|||
dist: clean
|
||||
@echo creating dist tarball
|
||||
@mkdir -p slow-${VERSION}
|
||||
@cp -R LICENSE Makefile config.mk ${SRC} slow-${VERSION}
|
||||
@cp -R LICENSE Makefile config.mk ${SRC} slow.1 slow-${VERSION}
|
||||
@tar -cf slow-${VERSION}.tar slow-${VERSION}
|
||||
@gzip slow-${VERSION}.tar
|
||||
@rm -rf slow-${VERSION}
|
||||
|
|
|
|||
21
slow.1
Normal file
21
slow.1
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
.TH slow 1 slow\-VERSION
|
||||
.SH NAME
|
||||
slow \- Slow down ouput
|
||||
.SH SYNOPSIS
|
||||
.B slow
|
||||
.RB [ \-t
|
||||
.IR time ]
|
||||
.RB [ \-F ]
|
||||
.SH DESCRIPTION
|
||||
.B slow
|
||||
cat stdin to stdout with a usleep between each bytes.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BI \-t " time"
|
||||
specify sleep time between each bytes in micro-second.
|
||||
Default value is 1 second.
|
||||
.TP
|
||||
.B \-F
|
||||
force flushing after each bytes.
|
||||
useful with buffered stdout like ttys.
|
||||
.TP
|
||||
2
todo.txt
2
todo.txt
|
|
@ -1,4 +1,4 @@
|
|||
- [x] Add forced flush option. -f ? -F ?
|
||||
- [ ] Write man page
|
||||
- [x] Write man page
|
||||
- [x] Send errors to sderr
|
||||
- [ ] Release v1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue