Skip to content

Multiple dependencies not supported #106

Closed
@winstonewert

Description

@winstonewert
> 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions