Error message if anyone try to create multiple helm chart at a time (#4952)

* error message for creating multiple helm chart at a time

Signed-off-by: hanif <abuhanifa@pathao.com>

* Update cmd/helm/create.go

Co-Authored-By: a8uhnf <a8uhnf@users.noreply.github.com>
Signed-off-by: hanif <abuhanifa@pathao.com>
pull/4956/head
Abu Hanifa 7 years ago committed by Matthew Fisher
parent 8fcefd7d95
commit 865c1d3c77

@ -75,6 +75,9 @@ func newCreateCmd(out io.Writer) *cobra.Command {
if len(args) == 0 {
return errors.New("the name of the new chart is required")
}
if len(args) > 1 {
return errors.New("command 'create' doesn't support multiple arguments")
}
cc.name = args[0]
return cc.run()
},

Loading…
Cancel
Save