fix: detect and error out on incorrect positional args (#236)
This commit is contained in:
@ -58,7 +58,7 @@ func newDeleteCmd() cli.Command {
|
||||
Destination: ¶ms.Predicate,
|
||||
},
|
||||
),
|
||||
Before: middleware.WithBeforeFns(withCli(), withApi(true)),
|
||||
Before: middleware.WithBeforeFns(withCli(), withApi(true), middleware.NoArgs),
|
||||
Action: func(ctx *cli.Context) error {
|
||||
client := delete.Client{CLI: getCLI(ctx), DeleteApi: getAPI(ctx).DeleteApi}
|
||||
return client.Delete(getContext(ctx), ¶ms)
|
||||
|
||||
Reference in New Issue
Block a user