rename wrapper-version argument for x to differentiate it from the bootstrap version
This commit is contained in:
parent
430ea8d440
commit
f50ad6cd8c
2 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue