rust-lang / cargo-bisect-rustc

Bisects rustc, either nightlies or CI artifacts
https://rust-lang.github.io/cargo-bisect-rustc/
Apache License 2.0
177 stars 55 forks source link

`cargo bisect-rustc` Fails While `cargo-bisect-rustc` Works. #186

Closed Alexhuszagh closed 2 years ago

Alexhuszagh commented 2 years ago

Issue

Running the following currently seems to fail:

$  cargo bisect-rustc --help
error: Found argument 'bisect-rustc' which wasn't expected, or isn't valid in this context

USAGE:
    cargo-bisect-rustc.exe [OPTIONS] [-- <COMMAND_ARGS>...]

For more information try --help

However, invoking cargo-bisect-rustc directly does work:

$ cargo-bisect-rustc --help
Bisects rustc toolchains with rustup

USAGE:
    cargo-bisect-rustc.exe [OPTIONS] [-- <COMMAND_ARGS>...]

ARGS:
    <COMMAND_ARGS>...    Arguments to pass to cargo or the file specified by --script during
                         tests

OPTIONS:
    -a, --alt                       Download the alt build instead of normal build
...

This seems to be related to #46.

Version Info

Bisect

The failing commit is b0ac34c57e5762b03bf5d181c28ef6d783a5c908, which changed to proper clap functions rather than structop. This fails on Windows and Linux.