From e1761a4e9467253da795660c2644426e81b6463f Mon Sep 17 00:00:00 2001 From: Dmitrii Aleksandrov Date: Tue, 26 Mar 2024 02:08:59 +0400 Subject: [PATCH] Clarify help message for --time option --- src/cli.rs | 2 +- tests/usage-long.trycmd | 2 +- tests/usage.trycmd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 2252e9d..eb98489 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -76,7 +76,7 @@ pub struct Args { #[arg(short, long)] stamp: bool, - /// Number of days backwards to keep + /// Delete only artifacts older than ... days #[arg(short, long, value_name = "DAYS")] time: Option, diff --git a/tests/usage-long.trycmd b/tests/usage-long.trycmd index d247997..27da64a 100644 --- a/tests/usage-long.trycmd +++ b/tests/usage-long.trycmd @@ -33,7 +33,7 @@ Options: Store timestamp file at the given path, is used by file option -t, --time - Number of days backwards to keep + Delete only artifacts older than ... days -a, --all Apply on all provided projects diff --git a/tests/usage.trycmd b/tests/usage.trycmd index 72c9075..79cde64 100644 --- a/tests/usage.trycmd +++ b/tests/usage.trycmd @@ -15,7 +15,7 @@ Options: -m, --maxsize Remove oldest artifacts from the target folder until it's smaller than MAXSIZE -r, --recursive Apply on all projects below the given path -s, --stamp Store timestamp file at the given path, is used by file option - -t, --time Number of days backwards to keep + -t, --time Delete only artifacts older than ... days -a, --all Apply on all provided projects --toolchains Toolchains currently installed by rustup that should have their artifacts kept -v, --verbose... Enable DEBUG logs (use twice for TRACE logs)