summaryrefslogtreecommitdiff
path: root/scripts/updateavatarurl.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2009-12-08 08:28:44 -0800
committerBrion Vibber <brion@status.net>2009-12-08 08:30:30 -0800
commit5affa498209b8c768531a816865903728e726e88 (patch)
tree3759a6d89760b52f04e4f46ea6856f46bd1ae657 /scripts/updateavatarurl.php
parent66bfb2f0e9ba5a1b1f70bbfbb53e9d5eb07f406f (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/updateavatarurl.php')
-rw-r--r--scripts/updateavatarurl.php8
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";
}
}