Skip to content

Commit 8460d8b

Browse files
committed
Fixing arguments parameter for the new module cmd
* It was set to exactly 1 but it should have been minimum of 1, that has now been fixed.
1 parent 9bf0e08 commit 8460d8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/new.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (a *App) newModuleCmd() *cobra.Command {
3434
newModuleCmd := &cobra.Command{
3535
Use: "module <name>",
3636
Short: "Create a new Puppet module",
37-
Args: cobra.ExactArgs(1),
37+
Args: cobra.MinimumNArgs(1),
3838
RunE: func(cmd *cobra.Command, args []string) error {
3939
forgeUser, _ := cmd.Flags().GetString("forge-user")
4040
license, _ := cmd.Flags().GetString("license")

0 commit comments

Comments
 (0)