keep --wrapper-version argument in x

This commit is contained in:
DebugSteven 2023-01-11 12:13:35 -07:00
parent 1a993611d2
commit 0d834d9523

View File

@ -52,6 +52,14 @@ fn exec_or_status(command: &mut Command) -> io::Result<ExitStatus> {
}
fn main() {
match env::args().skip(1).next().as_deref() {
Some("--wrapper-version") => {
let version = env!("CARGO_PKG_VERSION");
println!("{}", version);
return;
}
_ => {}
}
let current = match env::current_dir() {
Ok(dir) => dir,
Err(err) => {