We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 430ea8d commit f50ad6cCopy full SHA for f50ad6c
src/tools/tidy/src/x_version.rs
@@ -3,7 +3,7 @@ use std::io::ErrorKind;
3
use std::process::{Command, Stdio};
4
5
pub fn check(bad: &mut bool) {
6
- let result = Command::new("x").arg("--version").stdout(Stdio::piped()).spawn();
+ let result = Command::new("x").arg("--wrapper-version").stdout(Stdio::piped()).spawn();
7
let child = match result {
8
Ok(child) => child,
9
Err(e) => match e.kind() {
src/tools/x/src/main.rs
@@ -53,7 +53,7 @@ fn exec_or_status(command: &mut Command) -> io::Result<ExitStatus> {
53
54
fn main() {
55
match env::args().skip(1).next().as_deref() {
56
- Some("--version") => {
+ Some("--wrapper-version") => {
57
let version = env!("CARGO_PKG_VERSION");
58
println!("{}", version);
59
return;
0 commit comments