diff --git a/main.go b/main.go index aa428cb..25b14a4 100644 --- a/main.go +++ b/main.go @@ -33,7 +33,7 @@ var cli = &cobra.Command{ var execute = &cobra.Command{ Use: "execute [workflow-file]", Short: "Executes the provided workflow.", - Args: cobra.MinimumNArgs(1), + Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { config := cmd.Context().Value("config").(*commands.Configuration) @@ -47,7 +47,7 @@ var execute = &cobra.Command{ var validate = &cobra.Command{ Use: "validate [workflow-file]", Short: "Validates the structure of the provided workflow.", - Args: cobra.MinimumNArgs(1), + Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { config := cmd.Context().Value("config").(*commands.Configuration)