Skip to content

Commit

Permalink
abp 2147: Made sure search&replace script cannot be started unintenti…
Browse files Browse the repository at this point in the history
…onally (without parameters)
  • Loading branch information
lovelywcm committed Jul 19, 2010
1 parent 2e8e4e3 commit 44bffe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions search_and_replace.pl
Expand Up @@ -2,6 +2,8 @@

use strict;

die "Usage: $^X $0 <regexp> <replaceBy>\n" unless @ARGV >= 2;

my ($from, $to) = @ARGV;

doDir('.');
Expand Down

0 comments on commit 44bffe4

Please sign in to comment.