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

Broken link in default_values_t error message #5842

Closed
2 tasks done
stevenengler opened this issue Dec 12, 2024 · 0 comments · Fixed by #5843
Closed
2 tasks done

Broken link in default_values_t error message #5842

stevenengler opened this issue Dec 12, 2024 · 0 comments · Fixed by #5843
Labels
C-bug Category: Updating dependencies

Comments

@stevenengler
Copy link
Contributor

Please complete the following tasks

Rust Version

rustc 1.83.0 (90b35a623 2024-11-26)

Clap Version

v4.5.23

Minimal reproducible code

#[clap(default_values_t = Some(Vec::new()))]
foo: Option<Vec<String>>,

Steps to reproduce the bug with the above code

cargo build

Actual Behaviour

error: #[arg(default_values_t)] can be used only on Vec types
       
       = note: see https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes

Link is a 404.

The master branch of clap does not contain the path examples/derive_ref/README.md.

This link is repeated several times in https://github.com/clap-rs/clap/blob/fde45f9aea766fb8de46e3d46e6575f393c3b6b9/clap_derive/src/item.rs.

Expected Behaviour

A working link.

Additional Context

No response

Debug Output

No response

@stevenengler stevenengler added the C-bug Category: Updating dependencies label Dec 12, 2024
epage added a commit to epage/clap that referenced this issue Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Updating dependencies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant