feat: enforce exact number of positionals instead of a minimum
This commit is contained in:
parent
d519aa4cd1
commit
fcaea8c753
1 changed files with 2 additions and 2 deletions
4
main.go
4
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue