From: Martin Kletzander Date: Fri, 12 May 2017 13:08:51 +0000 (+0200) Subject: test-wrap-argv.pl: Accept short parameter -i for --in-place X-Git-Tag: v3.4.0-rc1~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec337aee9b20091d6f9f60b78f210d55f812500b;p=thirdparty%2Flibvirt.git 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 --- diff --git a/tests/test-wrap-argv.pl b/tests/test-wrap-argv.pl index f0d3c0ba2d..7867e9d719 100755 --- a/tests/test-wrap-argv.pl +++ b/tests/test-wrap-argv.pl @@ -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") {