Skip to content

Commit

Permalink
rename wrapper-version argument for x to differentiate it from the bo…
Browse files Browse the repository at this point in the history
…otstrap version
  • Loading branch information
DebugSteven committed Dec 31, 2022
1 parent 430ea8d commit f50ad6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/x_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io::ErrorKind;
use std::process::{Command, Stdio};

pub fn check(bad: &mut bool) {
let result = Command::new("x").arg("--version").stdout(Stdio::piped()).spawn();
let result = Command::new("x").arg("--wrapper-version").stdout(Stdio::piped()).spawn();
let child = match result {
Ok(child) => child,
Err(e) => match e.kind() {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/x/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn exec_or_status(command: &mut Command) -> io::Result<ExitStatus> {

fn main() {
match env::args().skip(1).next().as_deref() {
Some("--version") => {
Some("--wrapper-version") => {
let version = env!("CARGO_PKG_VERSION");
println!("{}", version);
return;
Expand Down

0 comments on commit f50ad6c

Please sign in to comment.