We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 444a525 commit 96004d3Copy full SHA for 96004d3
cmd/ksau/upload.go
@@ -18,8 +18,8 @@ func init() {
18
}
19
20
func uploadCmdCallback(cmd *cobra.Command, args []string) {
21
- if len(args) > 3 {
22
- fmt.Printf("%s: Cannot have more than three arguments", internal.GetFunctionName())
+ if len(args) > 3 || len(args) < 2 {
+ fmt.Printf("%s: invalid number of arguments: %d", internal.GetFunctionName(), len(args))
23
return
24
25
0 commit comments