Derive API tutorial refers to Builder API concepts rather than the derive API attributes #3489
Closed
2 tasks done
Labels
C-bug
Category: bug
Please complete the following tasks
Rust Version
N/A
Clap Version
3.1.0
Minimal reproducible code
N/A
Steps to reproduce the bug with the above code
Actual Behaviour
The tutorial text says:
...and later:
(and so on, there are several more similar usages)
These are the builder API, not the derive API.
Expected Behaviour
I would instead expect the derive tutorial to mention the actual derive attributes seen in the example:
https://github.com/clap-rs/clap/blob/v3.1.0/examples/tutorial_derive/02_apps.rs
...such as
#[derive(Parser)]
,#[clap(name = "MyApp")]
etc.Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: