From 57e7b6f30eccaf09165b438b5fbbd96a429d8199 Mon Sep 17 00:00:00 2001 From: Jonathan Solskov Jensen Date: Thu, 2 May 2024 14:51:00 +0200 Subject: [PATCH] Correcting short name and comment mentioning --older-than --- src/main.rs | 4 ++-- src/run.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5fa7616..176fbcf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -202,8 +202,8 @@ fn settings() -> io::Result { ) .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"), ) diff --git a/src/run.rs b/src/run.rs index 22526e7..ae670b6 100644 --- a/src/run.rs +++ b/src/run.rs @@ -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) {