Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

feat(cli): add --timeout-ms alias for fetch timeout

ldm0b8b03c02164b
diff --git a/moli/src/cli.rs b/moli/src/cli.rs
index 88161fd51..0f43d4a53 100644
--- a/moli/src/cli.rs
+++ b/moli/src/cli.rs
@@ -274,7 +274,12 @@ pub struct FetchArgs {
/// replacement navigations, the selected lifecycle stage, response match,
/// selector, and script waits share one absolute deadline. Network-idle and
/// DOM-stable return the current page with a warning when it expires.
- #[arg(short, long, alias = "wait-ms", default_value_t = 25_000)]
+ #[arg(
+ short,
+ long,
+ aliases = ["wait-ms", "timeout-ms"],
+ default_value_t = 25_000
+ )]
pub timeout: u64,
#[command(flatten)]