From 2683718a10e3388df21bd8ed641c841f204e41b6 Mon Sep 17 00:00:00 2001 From: Ryan Fitzpatrick Date: Thu, 15 Dec 2022 17:36:21 +0000 Subject: [PATCH] hide dry-run from help content --- internal/settings/settings.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/settings/settings.go b/internal/settings/settings.go index 6f4461a9fb..ccbf1edcc9 100644 --- a/internal/settings/settings.go +++ b/internal/settings/settings.go @@ -179,6 +179,7 @@ func parseArgs(args []string) (*Settings, error) { "The component has to be defined in the config file and the flag has a higher precedence. "+ "Array config properties are overridden and maps are joined. Example --set=processors.batch.timeout=2s") flagSet.BoolVar(&settings.dryRun, "dry-run", false, "Don't run the service, just show the configuration") + flagSet.MarkHidden("dry-run") flagSet.BoolVar(&settings.noConvertConfig, "no-convert-config", false, "Do not translate old configurations to the new format automatically. "+ "By default, old configurations are translated to the new format for backward compatibility.")