Explicitly enforce the number or arguments accepted by some wwctl subcommands. #1717
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -23,6 +23,7 @@ func GetCommand() *cobra.Command {
|
||||
Long: "This command will show you the images that are imported into Warewulf.",
|
||||
RunE: CobraRunE(&vars),
|
||||
Aliases: []string{"ls"},
|
||||
Args: cobra.ArbitraryArgs,
|
||||
ValidArgsFunction: completions.Images,
|
||||
}
|
||||
baseCmd.PersistentFlags().BoolVarP(&vars.full, "long", "l", false, "show all")
|
||||
|
||||
Reference in New Issue
Block a user