From: Brion Vibber Date: Tue, 8 Dec 2009 16:28:44 +0000 (-0800) Subject: Tweak updateavatarurl.php: emit a newline whether we're on verbose or non-quiet,... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5affa498209b8c768531a816865903728e726e88;p=quix0rs-gnu-social.git Tweak updateavatarurl.php: emit a newline whether we're on verbose or non-quiet, emit help when no users specified. --- diff --git a/scripts/updateavatarurl.php b/scripts/updateavatarurl.php index dfcfc118cf..617c2e24c7 100644 --- a/scripts/updateavatarurl.php +++ b/scripts/updateavatarurl.php @@ -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"; } }