Skip to content

Commit

Permalink
fix : running dockclean command without any flag defaultly points to …
Browse files Browse the repository at this point in the history
…sizelimit instead of default
  • Loading branch information
deexithparand committed Oct 30, 2024
1 parent 49486b6 commit 598a28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 598a28f

Please sign in to comment.