From 4630216c3019095bcb5864c19a8a067b6042eac4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 14 Jan 2022 16:55:56 +0100 Subject: [PATCH] Add description for `max-cache-age` flag --- README.md | 2 +- lychee-bin/src/options.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 344c8e5..b3a802c 100644 --- a/README.md +++ b/README.md @@ -238,7 +238,7 @@ OPTIONS: limiting [env: GITHUB_TOKEN] -h, --headers ... Custom request headers --include ... URLs to check (supports regex). Has preference over all excludes - --max-cache-age [default: 1d] + --max-cache-age Discard all cached requests older than this duration [default: 1d] --max-concurrency Maximum number of concurrent network requests [default: 128] -m, --max-redirects Maximum number of allowed redirects [default: 5] --max-retries Maximum number of retries per request [default: 3] diff --git a/lychee-bin/src/options.rs b/lychee-bin/src/options.rs index d3342fc..37d2953 100644 --- a/lychee-bin/src/options.rs +++ b/lychee-bin/src/options.rs @@ -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),