chiark / gitweb /
handle rustup +<toolchain> option
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Apr 2021 14:55:27 +0000 (15:55 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Apr 2021 14:55:27 +0000 (15:55 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nailing-cargo

index 916988cc7526138254a77bd41265460c7c705778..fc2034d5bcc0ae699fe405efae425e8071b01f31 100755 (executable)
@@ -1066,7 +1066,7 @@ sub parse_args () {
   if ($is_cargo) {
     @args_preface = shift @ARGV;
     while (defined($_ = shift @ARGV)) {
-      if (!m{^-}) { unshift @ARGV, $_; last; }
+      if (!m{^-|^\+}) { unshift @ARGV, $_; last; }
       if ($_ eq '--') { last; }
       push @args_preface, $_;
     }