Make sure list has a minimum args of 1.

This commit is contained in:
Gregory Kurtzer
2021-09-13 22:26:49 -07:00
parent 3137f477bf
commit 204b88742a

View File

@@ -6,11 +6,12 @@ import (
var (
baseCmd = &cobra.Command{
Use: "list [flags] <overlay kind> <overlay name>",
Use: "list [flags] <overlay kind> [overlay name]",
Short: "List Warewulf Overlays and files",
Long: "This command will show you information about Warewulf overlays and the\n" +
"files contained within.",
RunE: CobraRunE,
Args: cobra.MinimumNArgs(1),
Aliases: []string{"ls"},
}
ListContents bool