require srcdir and destdir params when --render used w/o --setup

The srcdir is needed by --render, so if --setup is not specified, read it
at the command line.
master
Joey Hess 2008-10-30 15:05:58 -04:00
parent 6d445cdaca
commit 6ad8b8f760
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ sub getconfig () { #{{{
"help|h" => sub { $SIG{__WARN__}=sub {}; die },
) || usage();
if (! $config{setup} && ! $config{render}) {
if (! $config{setup}) {
loadplugins();
if (@ARGV == 2) {
$config{srcdir} = possibly_foolish_untaint(shift @ARGV);