From e1ffd9f3a147fbbc95b3a4f752a84156e8e48050 Mon Sep 17 00:00:00 2001 From: hanif Date: Wed, 21 Nov 2018 01:15:05 +0600 Subject: [PATCH] error message for creating multiple helm chart at a time Signed-off-by: hanif --- cmd/helm/create.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/helm/create.go b/cmd/helm/create.go index 7f0f99af8..afb614027 100644 --- a/cmd/helm/create.go +++ b/cmd/helm/create.go @@ -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 helm-chart creation at a time") + } cc.name = args[0] return cc.run() },