From: Ian Jackson Date: Sun, 10 May 2020 22:12:25 +0000 (+0100) Subject: nailing-cargo: invert sense of -u -U -m -M X-Git-Tag: nailing-cargo/1.0.0~203 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ae7b6c83a05a88131aa34f7d19fd2d1a6b65d94b;p=nailing-cargo.git nailing-cargo: invert sense of -u -U -m -M If we are going to have one of caps and lc mean "enable" and the other "disable", it seems more usual to have lc mean "enable. Signed-off-by: Ian Jackson --- diff --git a/nailing-cargo b/nailing-cargo index 77bde51..55b9f99 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -550,9 +550,9 @@ while (@ARGV && $ARGV[0] =~ m/^-/) { } elsif (s{^-T(.+)}{-}s) { $target = $1; } elsif (s{^-([uU])}{-}) { - $cargo_lock_update= $1=~m/[A-Z]/; + $cargo_lock_update= $1=~m/[a-z]/; } elsif (s{^-([mM])}{-}) { - $cargo_manifest_args= $1=~m/[A-Z]/; + $cargo_manifest_args= $1=~m/[a-z]/; } else { die "$self: unknown short option(s) $_\n"; }