Add description for max-cache-age flag

This commit is contained in:
Matthias 2022-01-14 16:55:56 +01:00
parent 994aadf6a1
commit 4630216c30
2 changed files with 2 additions and 1 deletions

View file

@ -238,7 +238,7 @@ OPTIONS:
limiting [env: GITHUB_TOKEN]
-h, --headers <headers>... Custom request headers
--include <include>... URLs to check (supports regex). Has preference over all excludes
--max-cache-age <max-cache-age> [default: 1d]
--max-cache-age <max-cache-age> Discard all cached requests older than this duration [default: 1d]
--max-concurrency <max-concurrency> Maximum number of concurrent network requests [default: 128]
-m, --max-redirects <max-redirects> Maximum number of allowed redirects [default: 5]
--max-retries <max-retries> Maximum number of retries per request [default: 3]

View file

@ -151,6 +151,7 @@ pub(crate) struct Config {
#[serde(default)]
pub(crate) cache: bool,
/// Discard all cached requests older than this duration
#[structopt(
long,
parse(try_from_str = humantime::parse_duration),