Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify help message for --time option #125

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64>,

Expand Down
2 changes: 1 addition & 1 deletion tests/usage-long.trycmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Options:
Store timestamp file at the given path, is used by file option

-t, --time <DAYS>
Number of days backwards to keep
Delete only artifacts older than ... days

-a, --all
Apply on all provided projects
Expand Down
2 changes: 1 addition & 1 deletion tests/usage.trycmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Options:
-m, --maxsize <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 <DAYS> Number of days backwards to keep
-t, --time <DAYS> Delete only artifacts older than ... days
-a, --all Apply on all provided projects
--toolchains <TOOLCHAINS> Toolchains currently installed by rustup that should have their artifacts kept
-v, --verbose... Enable DEBUG logs (use twice for TRACE logs)
Expand Down
Loading