Skip to content

Commit f50ad6c

Browse files
committed
rename wrapper-version argument for x to differentiate it from the bootstrap version
1 parent 430ea8d commit f50ad6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/tidy/src/x_version.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::io::ErrorKind;
33
use std::process::{Command, Stdio};
44

55
pub fn check(bad: &mut bool) {
6-
let result = Command::new("x").arg("--version").stdout(Stdio::piped()).spawn();
6+
let result = Command::new("x").arg("--wrapper-version").stdout(Stdio::piped()).spawn();
77
let child = match result {
88
Ok(child) => child,
99
Err(e) => match e.kind() {

src/tools/x/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn exec_or_status(command: &mut Command) -> io::Result<ExitStatus> {
5353

5454
fn main() {
5555
match env::args().skip(1).next().as_deref() {
56-
Some("--version") => {
56+
Some("--wrapper-version") => {
5757
let version = env!("CARGO_PKG_VERSION");
5858
println!("{}", version);
5959
return;

0 commit comments

Comments
 (0)