add -y flag to wwctl profile add

close #610

Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
Christian Goll
2022-12-22 14:54:42 +01:00
parent 0e6223b6f8
commit 9539e20a4e

View File

@@ -58,6 +58,7 @@ func GetCommand() *cobra.Command {
}); err != nil {
log.Println(err)
}
baseCmd.PersistentFlags().BoolVarP(&SetYes, "yes", "y", false, "Set 'yes' to all questions asked")
return baseCmd
}