Skip to content

Commit

Permalink
Clarify help message for --time option
Browse files Browse the repository at this point in the history
  • Loading branch information
Expurple committed Mar 25, 2024
1 parent a1146c5 commit dfb8c67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit dfb8c67

Please sign in to comment.