1
Fork 0

rename wrapper-version argument for x to differentiate it from the bootstrap version

This commit is contained in:
DebugSteven 2022-12-07 14:00:40 -07:00
parent 430ea8d440
commit f50ad6cd8c
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -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;