Skip to content

Commit b5f3f04

Browse files
committed
fix(search) Add exact number of args validation
1 parent 6f0da35 commit b5f3f04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cmd/search/search.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func NewSearchCmd(f *cmdutil.Factory) *cobra.Command {
4040
cmd := &cobra.Command{
4141
Use: "search <index-name>",
4242
Short: "Search the given index",
43+
Args: cobra.ExactArgs(1),
4344
ValidArgsFunction: cmdutil.IndexNames(opts.SearchClient),
4445
Long: `Search for objects in your index.`,
4546
Example: heredoc.Doc(`

0 commit comments

Comments
 (0)