Skip to content

Commit

Permalink
keep --wrapper-version argument in x
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugSteven committed Jan 11, 2023
1 parent 1a99361 commit 0d834d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tools/x/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 0d834d9

Please sign in to comment.