Epand usage message and add --help. Closes: #500344

master
Joey Hess 2008-09-27 11:17:19 -04:00
parent 78e4d5bc6f
commit 60a80be0b3
2 changed files with 4 additions and 1 deletions

1
debian/changelog vendored
View File

@ -10,6 +10,7 @@ ikiwiki (2.66) UNRELEASED; urgency=low
inside tagbase, when it's set.
* htmlscrubber: Add a config setting that can be used to disable the
scrubber acting on a set of pages.
* Epand usage message and add --help. Closes: #500344
-- Joey Hess <joeyh@debian.org> Thu, 25 Sep 2008 13:45:55 -0400

View File

@ -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}) {