16 lines
462 B
Rust
16 lines
462 B
Rust
fn main() {
|
|
zenbook_duo_control_lib::runtime::version::print_and_exit_if_requested(
|
|
"zenbook-duo-usb-remap-helper",
|
|
);
|
|
env_logger::init();
|
|
|
|
match zenbook_duo_control_lib::usb_media_remap_helper::run_from_env() {
|
|
Ok(()) => std::process::exit(0),
|
|
Err(err) => {
|
|
zenbook_duo_control_lib::usb_media_remap_helper::log_error(&err);
|
|
eprintln!("{err}");
|
|
std::process::exit(1);
|
|
}
|
|
}
|
|
}
|