diff --git a/src/main.rs b/src/main.rs index 5f3cdd422..4a3845228 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,7 +27,14 @@ fn main() -> iced::Result { #[cfg(not(target_arch = "wasm32"))] { use clap::Parser; - let args = cli::Cli::parse(); + // `/b script.scr`, the startup switch shortcuts carry, is `--script`. + let args = cli::Cli::parse_from(std::env::args_os().map(|arg| { + if arg == "/b" || arg == "/B" { + "--script".into() + } else { + arg + } + })); // GPU probe child: exercise one backend offscreen, print one JSON // line on success and exit 0/1. This must run before any logging/GUI