diff --git a/Makefile b/Makefile index b3a70fc..04d0765 100644 --- a/Makefile +++ b/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} diff --git a/slow.1 b/slow.1 new file mode 100644 index 0000000..01a481c --- /dev/null +++ b/slow.1 @@ -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 diff --git a/todo.txt b/todo.txt index 93851e3..b492db0 100644 --- a/todo.txt +++ b/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