Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adopting clap broke cargo local-registry subcommand syntax #192

Open
cormacrelf opened this issue Sep 4, 2024 · 1 comment
Open

adopting clap broke cargo local-registry subcommand syntax #192

cormacrelf opened this issue Sep 4, 2024 · 1 comment

Comments

@cormacrelf
Copy link

cormacrelf commented Sep 4, 2024

You can still use it as cargo-local-registry. But it no longer works as a cargo subcommand. Cargo invokes it as

cargo-local-registry local-registry --sync blah.lock vendor/

... which means the vendor/ is treated as an extra argument and clap fails with

error: unexpected argument 'vendor' found

Usage: cargo-local-registry [OPTIONS] <PATH>

For more information, try '--help'.

See https://github.com/clap-rs/clap/tree/master/examples for how it's done. I don't know if you can support both invocation styles using clap.

Edit: thought this was released! It wasn't released in 0.2.7.

@cormacrelf cormacrelf changed the title adopting clap in v0.2.7 broke cargo local-registry subcommand syntax adopting clap broke cargo local-registry subcommand syntax Sep 4, 2024
@dhovart
Copy link
Owner

dhovart commented Sep 5, 2024

Hello, this was merged on master but not released yet. I'll have a look at this later this week, thanks for the bug report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants