Skip to content

Commit 0d834d9

Browse files
committed
keep --wrapper-version argument in x
1 parent 1a99361 commit 0d834d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/tools/x/src/main.rs

+8
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ fn exec_or_status(command: &mut Command) -> io::Result<ExitStatus> {
5252
}
5353

5454
fn main() {
55+
match env::args().skip(1).next().as_deref() {
56+
Some("--wrapper-version") => {
57+
let version = env!("CARGO_PKG_VERSION");
58+
println!("{}", version);
59+
return;
60+
}
61+
_ => {}
62+
}
5563
let current = match env::current_dir() {
5664
Ok(dir) => dir,
5765
Err(err) => {

0 commit comments

Comments
 (0)