From 598a28f027f984bca6f91dd4cf08358552ade372 Mon Sep 17 00:00:00 2001 From: DeexithParand2k2 Date: Wed, 30 Oct 2024 21:03:26 +0530 Subject: [PATCH] fix : running dockclean command without any flag defaultly points to sizelimit instead of default --- pkg/utils/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/flags.go b/pkg/utils/flags.go index 819b5c7..c09eb16 100644 --- a/pkg/utils/flags.go +++ b/pkg/utils/flags.go @@ -39,7 +39,7 @@ func ParseFlags() *Flags { flag.BoolVar(&f.DryRun, "dry-run", false, "List unused Docker images without deleting them") flag.BoolVar(&f.RemoveStopped, "remove-stopped", false, "Remove Images Associated with Stopped Containers") flag.BoolVar(&f.VerboseMode, "verbose", false, "Verbose mode provides additional details about each image during cleanup") - flag.Float64Var(&f.SizeLimit.Value, "size-limit", 0, "Specify the size limit to filter images (e.g., 500MB, 1GB)") + flag.Float64Var(&f.SizeLimit.Value, "size-limit", -1, "Specify the size limit to filter images (e.g., 500MB, 1GB)") flag.BoolVar(&f.B, "B", false, "Specify the size unit as bytes") flag.BoolVar(&f.KB, "KB", false, "Specify the size unit as kilobytes") flag.BoolVar(&f.MB, "MB", false, "Specify the size unit as megabytes")