josecelano / cargo-pretty-test

A Rust command that prettifies the ugly `cargo test` output into a beautiful one.
https://users.rust-lang.org/t/cargo-test-output-with-indentation/100149
135 stars 1 forks source link

fixup!(v0.2.5): reinterpret `--version`/`-V` to show cargo-pretty-test version #44

Closed zjp-CN closed 11 months ago

zjp-CN commented 11 months ago

Note: cargo instead of cargo test supports that argument

before this PR

$ cargo pretty-test --version
Error from cargo-pretty-test:
"" should contain `running (?P<amount>\d+) tests?` pattern

Error from cargo test:
error: unexpected argument '--version' found

  tip: a similar argument exists: '--verbose'

Usage: cargo test --verbose... [TESTNAME] [-- [args]...]

For more information, try '--help'.

after this PR

$ cargo pretty-test --version
cargo-pretty-test version: 0.2.5

ref https://github.com/josecelano/cargo-pretty-test/issues/23

zjp-CN commented 11 months ago

Already published cargo-pretty-test v0.2.5 at registry crates-io