-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.
Description
if you clone a repo and has examples and you run cargo run --example you only get help for general usage, what about print the actual examples on the examples directory?
$ cargo run --example
Expected argument for flag '--example' but reached end of arguments.
Usage:
cargo run [options] [--] [<args>...]
If there where one.rs, two.rs and three.rs inside examples folder it could output something like
$ cargo run --example
Expected argument for flag '--example' but reached end of arguments.
Available examples are: one, two and three.
Usage:
cargo run [options] [--] [<args>...]
Even more, it can autocomplete the name of the example... well that will be only a NTH.
p32blo, dtolnay, RandomInsano, colin-kiegel, matthewjberger and 29 more
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.