File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::io::ErrorKind;
3
3
use std:: process:: { Command , Stdio } ;
4
4
5
5
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 ( ) ;
7
7
let child = match result {
8
8
Ok ( child) => child,
9
9
Err ( e) => match e. kind ( ) {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ fn exec_or_status(command: &mut Command) -> io::Result<ExitStatus> {
53
53
54
54
fn main ( ) {
55
55
match env:: args ( ) . skip ( 1 ) . next ( ) . as_deref ( ) {
56
- Some ( "--version" ) => {
56
+ Some ( "--wrapper- version" ) => {
57
57
let version = env ! ( "CARGO_PKG_VERSION" ) ;
58
58
println ! ( "{}" , version) ;
59
59
return ;
You can’t perform that action at this time.
0 commit comments