We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c4dd40 + 5b68a01 commit b0d7fefCopy full SHA for b0d7fef
gui/src-tauri/src/main.rs
@@ -274,12 +274,7 @@ fn setup_tauri(
274
275
app.manage(Mutex::new(window_state));
276
277
- if cli.no_start_server {
278
- log::info!("Skipping server start.");
279
- return Ok(());
280
- }
281
-
282
- if server_running() {
+ if cli.skip_server_start_if_running && server_running() {
283
log::info!("Skipping server start: server is already running.");
284
return Ok(());
285
}
gui/src-tauri/src/util.rs
@@ -48,7 +48,7 @@ pub struct Cli {
48
#[clap(long)]
49
pub launch_from_path: Option<PathBuf>,
50
51
- pub no_start_server: bool,
+ pub skip_server_start_if_running: bool,
52
#[clap(flatten)]
53
verbose: clap_verbosity_flag::Verbosity,
54
0 commit comments