Closed jlpoolen closed 2 years ago
I believe it already does, but when you run it in that way cargo
thinks the --version
is meant for it rather than for the command to be run.
Try cargo run --example client -- --version
instead, or cargo build --example client && target/debug/client --version
.
Works. Thank you.
jlpoole@taurus /usr/local/src/retina $ cargo run --example client -- --version
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/examples/client --version`
retina 0.2.0
jlpoole@taurus /usr/local/src/retina $
It would be helpful to have a self-publishing of the version running.