test-wrap-argv.pl: Accept short parameter -i for --in-place

I like to use it that way and every time I try running it I just
instinctively use '-i' (like with sed, etc.) and it makes sense, IMHO.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2017-05-12 15:08:51 +02:00
parent 0918b84968
commit ec337aee9b

View File

@ -31,7 +31,7 @@
$in_place = 0;
$check = 0;
if (@ARGV[0] eq "--in-place") {
if (@ARGV[0] eq "--in-place" or @ARGV[0] eq "-i") {
$in_place = 1;
shift @ARGV;
} elsif (@ARGV[0] eq "--check") {