Skip to content

Commit 57ad5f2

Browse files
committed
Fix help output for "exec --no-tty" option
Signed-off-by: Anton Ovchinnikov <[email protected]>
1 parent e59150b commit 57ad5f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/compose/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func execCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Compose)
8282
runCmd.Flags().IntVar(&opts.index, "index", 0, "Index of the container if service has multiple replicas")
8383
runCmd.Flags().BoolVarP(&opts.privileged, "privileged", "", false, "Give extended privileges to the process")
8484
runCmd.Flags().StringVarP(&opts.user, "user", "u", "", "Run the command as this user")
85-
runCmd.Flags().BoolVarP(&opts.noTty, "no-tty", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY.")
85+
runCmd.Flags().BoolVarP(&opts.noTty, "no-tty", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-TTY allocation. By default 'docker compose exec' allocates a TTY.")
8686
runCmd.Flags().StringVarP(&opts.workingDir, "workdir", "w", "", "Path to workdir directory for this command")
8787

8888
runCmd.Flags().BoolVarP(&opts.interactive, "interactive", "i", true, "Keep STDIN open even if not attached")

docs/reference/compose_exec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ a script.
2020
| `--dry-run` | `bool` | | Execute command in dry run mode |
2121
| `-e`, `--env` | `stringArray` | | Set environment variables |
2222
| `--index` | `int` | `0` | Index of the container if service has multiple replicas |
23-
| `-T`, `--no-tty` | `bool` | `true` | Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY. |
23+
| `-T`, `--no-tty` | `bool` | `true` | Disable pseudo-TTY allocation. By default 'docker compose exec' allocates a TTY. |
2424
| `--privileged` | `bool` | | Give extended privileges to the process |
2525
| `-u`, `--user` | `string` | | Run the command as this user |
2626
| `-w`, `--workdir` | `string` | | Path to workdir directory for this command |

docs/reference/docker_compose_exec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ options:
6363
value_type: bool
6464
default_value: "true"
6565
description: |
66-
Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY.
66+
Disable pseudo-TTY allocation. By default 'docker compose exec' allocates a TTY.
6767
deprecated: false
6868
hidden: false
6969
experimental: false

0 commit comments

Comments
 (0)