X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fupdateavatarurl.php;h=617c2e24c744233990b651010bb09fe45138d1ca;hb=71df23642c60d24669def858a8059d70f284744c;hp=dfcfc118cf7f0129d95b8560e0d3a874d78458f2;hpb=8bcc58a9894e715dc1cb39eeb390bf8deefc13b7;p=quix0rs-gnu-social.git 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"; } }