From 865c1d3c7757a12271e0d9dca805f8d54b5f6456 Mon Sep 17 00:00:00 2001 From: Abu Hanifa Date: Thu, 29 Nov 2018 00:06:04 +0600 Subject: [PATCH] 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 * Update cmd/helm/create.go Co-Authored-By: a8uhnf 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..0d278c8b5 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 arguments") + } cc.name = args[0] return cc.run() },