main: list-images takes no args (just --filter)

Tiny commit to error if extra arguments are passed to list-images.
Only `--filter` is supported there currently.
This commit is contained in:
Michael Vogt 2024-11-27 10:56:45 +01:00 committed by Ondřej Budai
parent 99bd43e7d4
commit 6d978ddc20
2 changed files with 16 additions and 0 deletions

View file

@ -64,6 +64,7 @@ operating sytsems like centos and RHEL with easy customizations support.`,
Short: "List buildable images, use --filter to limit further",
RunE: cmdListImages,
SilenceUsage: true,
Args: cobra.NoArgs,
}
listImagesCmd.Flags().StringArray("filter", nil, `Filter distributions by a specific criteria (e.g. "type:rhel*")`)
listImagesCmd.Flags().String("output", "", "Output in a specific format (text, json)")