From b9adfbf9673a83c47750b13b525d219834513f76 Mon Sep 17 00:00:00 2001 From: Antoine Langlois Date: Sun, 6 Mar 2022 14:35:15 +0100 Subject: [PATCH] Update README.md --- README.md | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index aae2ed8..5d1b95d 100644 --- a/README.md +++ b/README.md @@ -34,33 +34,38 @@ cargo install --path . clear-docker-images ``` -## Flags +## Options ```bash - -d, --date - filter by date. +USAGE: + clear-docker-images [OPTIONS] [REPOSITORY] - Can filter by a minimum age $DATE or from $FROM|$TO (format example: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS) - [default: $NOW - 2 days] +ARGS: + + filter by repository name - --dry-run - image cleanup will not be triggered [default: false] +OPTIONS: + -d, --date + filter by date. - --force - force image removal [default: false] + Can filter by a minimum age $DATE or from $START|$STOP (format example: YYYY-MM-DD or + YYYY-MM-DDTHH:MM:SS) [default: $NOW - 2d] - -h, --help - Print help information + --dry-run + image cleanup will not be triggered [default: false] - -r, --repository - filter by repository name + --force + force image removal [default: false] - -t, --tags - add tags exclusion + -h, --help + Print help information - -v, --verbose - add more logs [default: false] + -t, --tags + add tags exclusion - -V, --version - Print version information + -v, --verbose + add more logs [default: false] + + -V, --version + Print version information ```