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:
@@ -35,6 +35,7 @@ func GetCommand() *cobra.Command {
|
||||
Aliases: []string{"modify"},
|
||||
RunE: CobraRunE(&vars),
|
||||
ValidArgsFunction: completions.Profiles,
|
||||
Args: cobra.ArbitraryArgs,
|
||||
}
|
||||
vars.profileConf.CreateFlags(baseCmd)
|
||||
vars.profileDel.CreateDelFlags(baseCmd)
|
||||
|
||||
Reference in New Issue
Block a user