wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r18117: LJSUP-6868. Add parameter 'all' to preve...

Committer: gprochaev
LJSUP-6868. Add parameter 'all' to prevent accidental script run

U   trunk/bin/misc/set_comm_supermaintainer.pl
Modified: trunk/bin/misc/set_comm_supermaintainer.pl
===================================================================
--- trunk/bin/misc/set_comm_supermaintainer.pl	2011-01-26 10:49:40 UTC (rev 18116)
+++ trunk/bin/misc/set_comm_supermaintainer.pl	2011-01-26 11:13:39 UTC (rev 18117)
@@ -25,15 +25,17 @@
 
     Options: 
         --verbose       Show progress
+        --all           Process all communities
         --help          Show this text and exit
 HELP
 
-my ($need_help, $verbose);
+my ($need_help, $verbose, $all);
 GetOptions(
     "help"          => \$need_help, 
     "verbose"       => \$verbose,
+    "all"           => \$all,
 ) or die $help;
-if ($need_help) {
+if ($need_help || (!@ARGV && !$all)) {
     print $help;
     exit(1);
 }

Tags: livejournal, pl, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments