error message for creating multiple helm chart at a time

Signed-off-by: hanif <abuhanifa@pathao.com>
pull/4952/head
hanif 7 years ago
parent d3357fad37
commit e1ffd9f3a1

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

Loading…
Cancel
Save