Revert "Fix version output"

This reverts commit a4e2a0d24a.

```
+ cargo-machete machete --version
Analyzing dependencies of crates in machete,--version...
Done!
Error: Errors when walking over directories:
IO error for operation on machete: No such file or directory (os error 2)
IO error for operation on --version: No such file or directory (os error 2)
```
This commit is contained in:
Taiki Endo
2024-04-19 21:49:49 +09:00
parent 502402be82
commit 826a56a831

View File

@@ -714,8 +714,7 @@ for tool in "${tools[@]}"; do
case "${tool_bin_stem}" in case "${tool_bin_stem}" in
# biome up to 1.2.2 exits with 1 on both --version and --help flags. # biome up to 1.2.2 exits with 1 on both --version and --help flags.
# cargo-machete up to 0.6.0 does not support --version flag. # cargo-machete up to 0.6.0 does not support --version flag.
biome) rx "${tool_bin_stem}" --version || true ;; biome | cargo-machete) rx "${tool_bin_stem}" --version || true ;;
cargo-machete) rx "${tool_bin_stem}" "${tool_bin_stem#cargo-}" --version || true ;;
# these packages support neither --version nor --help flag. # these packages support neither --version nor --help flag.
cargo-careful | wasm-bindgen-test-runner) ;; cargo-careful | wasm-bindgen-test-runner) ;;
# wasm2es6js does not support --version flag and --help flag doesn't contains version info. # wasm2es6js does not support --version flag and --help flag doesn't contains version info.