From a97ff87fa15818c48ca33933b5e948ffea58353f Mon Sep 17 00:00:00 2001 From: Cyril Jouve Date: Thu, 21 Jul 2022 19:06:35 +0200 Subject: [PATCH] correct --help cli arg regression Signed-off-by: Cyril Jouve --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index f5a8f797..96e07fe7 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -121,4 +121,6 @@ func setGlobalOptionsForRootCmd(fs *pflag.FlagSet, globalOptions *config.GlobalO The name of a release can be used as a label. --selector name=myrelease`) fs.BoolVar(&globalOptions.AllowNoMatchingRelease, "allow-no-matching-release", globalOptions.AllowNoMatchingRelease, `Do not exit with an error code if the provided selector has no matching releases.`) fs.BoolVarP(&globalOptions.Interactive, "interactive", "i", globalOptions.Interactive, "Request confirmation before attempting to modify clusters") + // avoid 'pflag: help requested' error (#251) + fs.BoolP("help", "h", false, "help for helmfile") }