TimonPost / cargo-dependency-inheritor

Utility to inherit dependencies from workspace file if it occurs 'n' or more times throughout the project.
Apache License 2.0
30 stars 1 forks source link

cargo subcommand doesn't invoke this program correctly #1

Closed Xaeroxe closed 1 year ago

Xaeroxe commented 1 year ago
$ cargo +beta dependency-inherit -n 2
error: no such subcommand: `dependency-inherit`

        Did you mean `dependency-inheritor`?

        View all installed commands with `cargo --list`

$ cargo +beta dependency-inheritor -n 2
error: The subcommand 'dependency-inheritor' wasn't recognized

        Did you mean 'dependency-inherit'?

If you believe you received this message in error, try re-running with 'cargo -- dependency-inheritor'

USAGE:
    cargo <SUBCOMMAND>

For more information try --help

$ cargo +beta --version
cargo 1.65.0-beta.1 (082503982 2022-09-13)

System is Windows 11 with MSVC target.

Xaeroxe commented 1 year ago

One more

$ cargo --list
Installed Commands:
    // ...
    dependency-inheritor
    // ...
TimonPost commented 1 year ago

Alirght, will have to look into it. Alwyas strugle to get sub commands working with cargo and clap. Had not given the released version a go yet, but can validate it doesnt work out of the box. The solution would be to download the lib and compile it your self.

Xaeroxe commented 1 year ago

Which I've already done, thanks for building this it's neat!