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

This commit is contained in:
ldm0
2026-10-07 01:52:52 +08:00
committed by Donough Liu
parent 5a836809ed
commit b8b03c0216
+6 -1
View File
@@ -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)]