Skip to content

Commit 7993945

Browse files
committed
feat: --api-port auto-enters watch mode (--watch still works as explicit flag)
1 parent 2dae867 commit 7993945

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ 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 {
113113
run_single(args).await

0 commit comments

Comments
 (0)