clap-rs / clap

A full featured, fast Command Line Argument Parser for Rust
docs.rs/clap
Apache License 2.0
14.03k stars 1.03k forks source link

Generate syntax/railroad diagram #5713

Open ronanM opened 1 week ago

ronanM commented 1 week ago

Please complete the following tasks

Clap Version

master

Describe your use case

For documentation purpose, add generation of syntax diagram:

Describe the solution you'd like

Maybe using https://github.com/lukaslueg/railroad

Alternatives, if applicable

No response

Additional Context

No response

epage commented 1 week ago

I'd recommend people experimenting with this first before we get built in support. That way we can evaluate value and interest.