> cargo install rust-script --version 0.22.0
> rust-script -d anyhow -d serde scripts/example.rs
Hello World
> cargo install rust-script --version 0.23.0
> rust-script -d anyhow -d serde scripts/example.rs
error: the argument '--dep <dep>' cannot be used multiple times
Usage: rust-script [OPTIONS] [script]...
For more information, try '--help'.
Starting with version 0.23.0, it is no longer possible to pass multiple -d or --dep flags. It appears that clap was upgraded in that version, and I surmise that is somehow responsible.
Starting with version 0.23.0, it is no longer possible to pass multiple
-d
or--dep
flags. It appears that clap was upgraded in that version, and I surmise that is somehow responsible.