fornwall / rust-script

Run Rust files and expressions as scripts without any setup or compilation step.
https://rust-script.org
Apache License 2.0
1.21k stars 41 forks source link

`--help` should print usage info for shebang scripts #44

Open lilyball opened 2 years ago

lilyball commented 2 years ago

The --help right now just lists all the flags. It should also include info on how to write shebang scripts, both the cargo manifest version and the cargo-deps: version. This way I don't need to go to the website to remember how to write these, especially as there's no manpage.

lilyball commented 2 years ago

I keep running into this and keep having to consult the website anew to find the // cargo-deps: syntax, as I use this infrequently enough that I don't actually remember how to do it.

memark commented 1 year ago

This would be great!

Do note that specifying cargo deps and using a shebang (#!/usr/bin/env rust-script) are not the same thing.