Tweak updateavatarurl.php: emit a newline whether we're on verbose or non-quiet, emit help when no users specified.

This commit is contained in:
Brion Vibber 2009-12-08 08:28:44 -08:00
parent 66bfb2f0e9
commit 5affa49820

View File

@ -60,7 +60,8 @@ try {
}
}
} else {
throw new Exception("You have to provide an ID or nickname or 'all'.");
show_help();
exit(1);
}
} catch (Exception $e) {
print $e->getMessage()."\n";
@ -123,6 +124,9 @@ function updateAvatars($user)
}
if (have_option('v', 'verbose')) {
print "DONE.\n";
print "DONE.";
}
if (!have_option('q', 'quiet') || have_option('v', 'verbose')) {
print "\n";
}
}