Add windows os check

This commit is contained in:
Sofia 2020-08-29 03:03:28 +03:00
parent bb87581ea5
commit 87caba2b33
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -18,6 +18,11 @@ fn main() {
std::process::exit(1); std::process::exit(1);
} }
} else { } else {
println!("Open nwg UI instead"); #[cfg(target_os = "windows")]
{
println!("Open nwg UI instead");
}
#[cfg(not(target_os = "windows"))]
println!("non-windows ui not supported. Please run with --help");
} }
} }