Add windows os check
This commit is contained in:
parent
bb87581ea5
commit
87caba2b33
@ -2,7 +2,9 @@ use argh::FromArgs;
|
|||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
#[derive(FromArgs)]
|
#[derive(FromArgs)]
|
||||||
#[argh(description = "Tool for gathering location data from Yepzon servers.")]
|
#[argh(
|
||||||
|
description = "Tool for gathering location data from Yepzon servers. Run without subcommands on windows to open nwg UI."
|
||||||
|
)]
|
||||||
pub struct EnvOpt {
|
pub struct EnvOpt {
|
||||||
#[argh(
|
#[argh(
|
||||||
option,
|
option,
|
||||||
|
@ -18,6 +18,11 @@ fn main() {
|
|||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
{
|
||||||
println!("Open nwg UI instead");
|
println!("Open nwg UI instead");
|
||||||
}
|
}
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
|
println!("non-windows ui not supported. Please run with --help");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user