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:
parent
66bfb2f0e9
commit
5affa49820
@ -60,7 +60,8 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Exception("You have to provide an ID or nickname or 'all'.");
|
show_help();
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
print $e->getMessage()."\n";
|
print $e->getMessage()."\n";
|
||||||
@ -123,6 +124,9 @@ function updateAvatars($user)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (have_option('v', 'verbose')) {
|
if (have_option('v', 'verbose')) {
|
||||||
print "DONE.\n";
|
print "DONE.";
|
||||||
|
}
|
||||||
|
if (!have_option('q', 'quiet') || have_option('v', 'verbose')) {
|
||||||
|
print "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user