From ae7b6c83a05a88131aa34f7d19fd2d1a6b65d94b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 10 May 2020 23:12:25 +0100 Subject: [PATCH] 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 --- nailing-cargo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; } -- 2.30.2