summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorLars Wirzenius <liw@evil.liw.fi>2011-05-23 14:25:29 +0100
committerLars Wirzenius <liw@evil.liw.fi>2011-05-23 14:25:29 +0100
commitef01f356ea258a21860a87d8bff0be3b83951241 (patch)
tree75502b058bd716485dc66ab62743edfe6b960eba /README
parent440f2f6982b2aacfa0f97b307dbe4d8ffc27de2a (diff)
downloadcliapp-ef01f356ea258a21860a87d8bff0be3b83951241.tar.gz
Update README with description of --generate-manpage.
Diffstat (limited to 'README')
-rw-r--r--README20
1 files changed, 20 insertions, 0 deletions
diff --git a/README b/README
index 6a69374..240ed98 100644
--- a/README
+++ b/README
@@ -67,6 +67,26 @@ It can also run the rest of the code under the Python profiler,
if the appropriate environment variable is set.
+Manual pages
+------------
+
+A high quality manual page probably needs to be written from
+scratch. For example, the description of each option in a manual
+page should usually be longer than what is suitable for
+`--help` output. However, it is tedious to write option
+descriptions many times.
+
+`cliapp` provides a way to fill in a manual page template, in
+**troff**(1) format, with information about all options. This
+allows you to write the rest of the manual page without having
+to remember to update all options. This is a compromise between
+ease-of-development and manual page quality.
+
+To use this, use the `--generate-manpage=TEMPLATE` option,
+where `TEMPLATE` is the name of the template file. See
+`example.1` for an example.
+
+
Legalese
--------