From d01d394a2b1f34550f5e4aa1ebbce969ea294cd3 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 16 Aug 2022 11:07:36 +0100 Subject: [PATCH] build: ensure consistent help messages for experimental cli help Append an [experimental] tag to the end of each experimental command to highlight that these are experimental options. Square brackets are used instead of parentheses as parentheses are already in use to highlight examples and defaults. Signed-off-by: Justin Chadwell --- commands/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/build.go b/commands/build.go index 9321c2e2..6145d445 100644 --- a/commands/build.go +++ b/commands/build.go @@ -479,7 +479,7 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command { flags.StringArrayVar(&options.platforms, "platform", platformsDefault, "Set target platform for build") if isExperimental() { - flags.StringVar(&options.printFunc, "print", "", "Print result of information request (outline, targets)") + flags.StringVar(&options.printFunc, "print", "", "Print result of information request (e.g., outline, targets) [experimental]") } flags.BoolVar(&options.exportPush, "push", false, `Shorthand for "--output=type=registry"`) @@ -501,7 +501,7 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command { flags.Var(options.ulimits, "ulimit", "Ulimit options") if isExperimental() { - flags.StringVar(&options.invoke, "invoke", "", "Invoke a command after the build. BUILDX_EXPERIMENTAL=1 is required.") + flags.StringVar(&options.invoke, "invoke", "", "Invoke a command after the build [experimental]") } // hidden flags