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:
@@ -13,6 +13,7 @@ var (
|
||||
Short: "Delete an imported image",
|
||||
Long: "This command will delete IMAGEs that have been imported into Warewulf.",
|
||||
RunE: CobraRunE,
|
||||
Args: cobra.ArbitraryArgs,
|
||||
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
||||
if len(args) != 0 {
|
||||
return nil, cobra.ShellCompDirectiveNoFileComp
|
||||
|
||||
Reference in New Issue
Block a user