Skip to content

Commit 54407a0

Browse files
committed
fix: --api-port implies --watch (no need for both flags)
1 parent 0fd4fea commit 54407a0

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/main.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
107107
return Ok(());
108108
}
109109

110-
if args.watch {
110+
if args.watch || args.api_port.is_some() {
111111
run_watch_mode(args).await
112112
} else {
113-
if args.api_port.is_some() {
114-
eprintln!(
115-
"[rustplorer] Note: --api-port requires --watch for the dashboard to stay alive"
116-
);
117-
}
118113
run_single(args).await
119114
}
120115
}

0 commit comments

Comments
 (0)