We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a99361 commit 0d834d9Copy full SHA for 0d834d9
src/tools/x/src/main.rs
@@ -52,6 +52,14 @@ fn exec_or_status(command: &mut Command) -> io::Result<ExitStatus> {
52
}
53
54
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
63
let current = match env::current_dir() {
64
Ok(dir) => dir,
65
Err(err) => {
0 commit comments