Add manpage.

This commit is contained in:
Simon Lieb 2013-08-08 21:21:01 +02:00
parent 841545aa4d
commit 0a46876fd9
3 changed files with 23 additions and 2 deletions

View file

@ -31,7 +31,7 @@ clean:
dist: clean dist: clean
@echo creating dist tarball @echo creating dist tarball
@mkdir -p slow-${VERSION} @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} @tar -cf slow-${VERSION}.tar slow-${VERSION}
@gzip slow-${VERSION}.tar @gzip slow-${VERSION}.tar
@rm -rf slow-${VERSION} @rm -rf slow-${VERSION}

21
slow.1 Normal file
View 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

View file

@ -1,4 +1,4 @@
- [x] Add forced flush option. -f ? -F ? - [x] Add forced flush option. -f ? -F ?
- [ ] Write man page - [x] Write man page
- [x] Send errors to sderr - [x] Send errors to sderr
- [ ] Release v1 - [ ] Release v1