Skip to content

Commit 51f1668

Browse files
committed
Use built-in cobra validator to handle empty args
1 parent e0aec26 commit 51f1668

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/submit.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var submitCmd = &cobra.Command{
2828
2929
Call the command with the list of files you want to submit.
3030
`,
31+
Args: cobra.MinimumNArgs(1),
3132
RunE: func(cmd *cobra.Command, args []string) error {
3233
cfg := config.NewConfig()
3334

0 commit comments

Comments
 (0)