]> xenbits.xensource.com Git - libvirt.git/commitdiff
test-wrap-argv.pl: Accept short parameter -i for --in-place
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 12 May 2017 13:08:51 +0000 (15:08 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 15 May 2017 10:34:19 +0000 (12:34 +0200)
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>
tests/test-wrap-argv.pl

index f0d3c0ba2d109651f8eefbae6ce3a6025f004e18..7867e9d7194e85e0330652a653955ac0ce4174bf 100755 (executable)
@@ -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") {