feat: add --version argument to print main binary version

Issue #8071
This commit is contained in:
MarcusGrass 2025-06-09 19:48:49 +02:00
parent d81ffb12ad
commit c8983aff97
No known key found for this signature in database
GPG key ID: B3F995FE064E3AA9

View file

@ -145,6 +145,10 @@ fn main() {
}
process::exit(0);
}
"--version" => {
println!("{binary_as_util} {VERSION} (multi-call binary)");
process::exit(0);
}
// Not a special command: fallthrough to calling a util
_ => {}
}