diff options
author | Lars Wirzenius <liw@evil.liw.fi> | 2011-05-23 14:25:29 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@evil.liw.fi> | 2011-05-23 14:25:29 +0100 |
commit | ef01f356ea258a21860a87d8bff0be3b83951241 (patch) | |
tree | 75502b058bd716485dc66ab62743edfe6b960eba /README | |
parent | 440f2f6982b2aacfa0f97b307dbe4d8ffc27de2a (diff) | |
download | cliapp-ef01f356ea258a21860a87d8bff0be3b83951241.tar.gz |
Update README with description of --generate-manpage.
Diffstat (limited to 'README')
-rw-r--r-- | README | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 -------- |