diff options
author | Brion Vibber <brion@status.net> | 2009-12-08 08:28:44 -0800 |
---|---|---|
committer | Brion Vibber <brion@status.net> | 2009-12-08 08:30:30 -0800 |
commit | 5affa498209b8c768531a816865903728e726e88 (patch) | |
tree | 3759a6d89760b52f04e4f46ea6856f46bd1ae657 /scripts | |
parent | 66bfb2f0e9ba5a1b1f70bbfbb53e9d5eb07f406f (diff) |
Tweak updateavatarurl.php: emit a newline whether we're on verbose or non-quiet, emit help when no users specified.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/updateavatarurl.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/updateavatarurl.php b/scripts/updateavatarurl.php index dfcfc118c..617c2e24c 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"; } } |