Small refactoring

This commit is contained in:
Sanel Zukan 2008-11-05 11:20:55 +00:00
parent f84910bf7f
commit 71bb4b94d8

View File

@ -77,10 +77,10 @@ sub main {
$in_block = 0; $in_block = 0;
$filename = $ARGV[0]; $filename = $ARGV[0];
if($ARGV[1] eq "") { if($ARGV[1]) {
$title = $filename . " documentation";
} else {
$title = $ARGV[1]; $title = $ARGV[1];
} else {
$title = $filename . " documentation";
} }
open(INFILE, $filename) or die "Can't open $filename: $!"; open(INFILE, $filename) or die "Can't open $filename: $!";