Skip to content

Commit

Permalink
Correcting short name and comment mentioning --older-than
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Solskov Jensen committed May 2, 2024
1 parent ff513c0 commit 57e7b6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ fn settings() -> io::Result<Settings> {
)
.arg(
Arg::with_name(MIN_AGE_OPTION)
.value_name("OLDER THAN")
.short("o")
.value_name("MIN AGE")
.short("m")
.long(MIN_AGE_OPTION)
.help("Specifies which images to delete based image creation time"),
)
Expand Down
2 changes: 1 addition & 1 deletion src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ fn vacuum(
});
}

// If the user provided the `--older-than` argument, we need to filter out images which are newer than the provided duration.
// If the user provided the `--min-age` argument, we need to filter out images which are newer than the provided duration.
if let Some(duration) = min_age {
let now = SystemTime::now();
match (now - *duration).duration_since(UNIX_EPOCH) {
Expand Down

0 comments on commit 57e7b6f

Please sign in to comment.