Epand usage message and add --help. Closes: #500344
parent
78e4d5bc6f
commit
60a80be0b3
|
@ -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
|
||||
|
||||
|
|
|
@ -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}) {
|
||||
|
|
Loading…
Reference in New Issue