From b1d2c18dfcbbc3743bf5cff12c306e57b62ccf24 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 9 Jun 2021 16:27:55 +0200 Subject: [PATCH] give -T a long name, otherwise help is weird Signed-off-by: Nicolas De Loof --- cli/cmd/compose/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/compose/exec.go b/cli/cmd/compose/exec.go index b37a6e22..c9b47ee2 100644 --- a/cli/cmd/compose/exec.go +++ b/cli/cmd/compose/exec.go @@ -68,7 +68,7 @@ func execCommand(p *projectOptions, backend compose.Service) *cobra.Command { runCmd.Flags().IntVar(&opts.index, "index", 1, "index of the container if there are multiple instances of a service [default: 1].") runCmd.Flags().BoolVarP(&opts.privileged, "privileged", "", false, "Give extended privileges to the process.") runCmd.Flags().StringVarP(&opts.user, "user", "u", "", "Run the command as this user.") - runCmd.Flags().BoolVarP(&opts.noTty, "", "T", notAtTTY(), "Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY.") + runCmd.Flags().BoolVarP(&opts.noTty, "no-TTY", "T", notAtTTY(), "Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY.") runCmd.Flags().StringVarP(&opts.workingDir, "workdir", "w", "", "Path to workdir directory for this command.") runCmd.Flags().SetInterspersed(false)