diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-09-27 11:17:19 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-09-27 11:17:19 -0400 |
commit | 60a80be0b386c1499eecf62843545a91b020ddc8 (patch) | |
tree | 369e9f7a5a13ecbd3d58059cd0149e45c1f5e774 /ikiwiki.in | |
parent | 78e4d5bc6f1a55b400611d12185369b6e76c0f33 (diff) | |
download | ikiwiki-60a80be0b386c1499eecf62843545a91b020ddc8.tar ikiwiki-60a80be0b386c1499eecf62843545a91b020ddc8.tar.gz |
Epand usage message and add --help. Closes: #500344
Diffstat (limited to 'ikiwiki.in')
-rwxr-xr-x | ikiwiki.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ikiwiki.in b/ikiwiki.in index cb9e3c347..f96daab0b 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -10,7 +10,8 @@ use lib '.'; # For use in nonstandard directory, munged by Makefile. use IkiWiki; sub usage () { #{{{ - die gettext("usage: ikiwiki [options] source dest"), "\n"; + die gettext("usage: ikiwiki [options] source dest"), "\n", + gettext(" ikiwiki --setup configfile"), "\n"; } #}}} sub getconfig () { #{{{ @@ -94,6 +95,7 @@ sub getconfig () { #{{{ print "ikiwiki version $IkiWiki::version\n"; exit; }, + "help|h" => sub { $SIG{__WARN__}=sub {}; die }, ) || usage(); if (! $config{setup} && ! $config{render}) { |