Committer: gprochaev
LJSUP-6868. Add parameter 'all' to prevent accidental script runU 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); }