diff options
author | panne <unknown> | 2003-08-26 19:01:19 +0000 |
---|---|---|
committer | panne <unknown> | 2003-08-26 19:01:19 +0000 |
commit | 32e889cbe0d011daad4cd22f2be67acc768d2827 (patch) | |
tree | 866b07f8e1aebb9002271772830af7a91eeff1b0 /doc | |
parent | 6bbdadb769912b622b6d47ea7129a411d8bb3a19 (diff) |
[haddock @ 2003-08-26 19:01:18 by panne]
Made option handling a bit more consistent with other tools, in
particular: Every program in fptools should output
* version info on stdout and terminate successfully when -V or --version
* usage info on stdout and terminate successfully when -? or --help
* usage info on stderr and terminate unsuccessfully when an unknown option
is given.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/haddock.sgml | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/doc/haddock.sgml b/doc/haddock.sgml index 9ce26b57..ce1112bc 100644 --- a/doc/haddock.sgml +++ b/doc/haddock.sgml @@ -422,12 +422,22 @@ </varlistentry> <varlistentry> - <term><option>-v</option></term> - <term><option>--verbose</option></term> - <indexterm><primary><option>-v</option></primary></indexterm> - <indexterm><primary><option>--verbose</option></primary></indexterm> + <term><option>-?</option></term> + <term><option>--help</option></term> + <indexterm><primary><option>-?</option></primary></indexterm> + <indexterm><primary><option>--help</option></primary></indexterm> <listitem> - <para>Reserved for future expansion.</para> + <para>Display help and exit.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><option>-V</option></term> + <term><option>--version</option></term> + <indexterm><primary><option>-V</option></primary></indexterm> + <indexterm><primary><option>--version</option></primary></indexterm> + <listitem> + <para>Output version information and exit.</para> </listitem> </varlistentry> |