X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c4777e30a94c07b915aa192ec9b24d039ebe76d9..0b1b72b2ee714c470b28426c875bcd6887b386c8:/ikiwiki.in diff --git a/ikiwiki.in b/ikiwiki.in index cb9e3c347..4f24cfc2e 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}) { @@ -182,7 +184,7 @@ sub main () { #{{{ # do nothing } else { - if (! $config{refresh}) { + if ($config{rebuild}) { debug(gettext("rebuilding wiki..")); } else {