Skip to content

Commit d871cb9

Browse files
ericfreesendeloof
authored andcommitted
Fix search/replace typo in --no-TTY documentation
Commit abbba74 looks to have accidentally replaced `pseudo-tty` with `pseudo-noTty` in several places. In other places, it looks like it replaced `pseudo-tty` with `pseudo-TTY`, so I used the uppercased version in these places as well. For example, running version 2.3.3, I get this output: ``` % docker-compose run --help ... Options: ... -T, --no-TTY Disable pseudo-noTty allocation. By default docker compose run allocates a TTY ... ``` Signed-off-by: Eric Freese <[email protected]>
1 parent 8d815ff commit d871cb9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/compose/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func runCommand(p *projectOptions, dockerCli command.Cli, backend api.Service) *
150150
flags.StringArrayVarP(&opts.environment, "env", "e", []string{}, "Set environment variables")
151151
flags.StringArrayVarP(&opts.labels, "label", "l", []string{}, "Add or override a label")
152152
flags.BoolVar(&opts.Remove, "rm", false, "Automatically remove the container when it exits")
153-
flags.BoolVarP(&opts.noTty, "no-TTY", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-noTty allocation (default: auto-detected).")
153+
flags.BoolVarP(&opts.noTty, "no-TTY", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-TTY allocation (default: auto-detected).")
154154
flags.StringVar(&opts.name, "name", "", " Assign a name to the container")
155155
flags.StringVarP(&opts.user, "user", "u", "", "Run as specified username or uid")
156156
flags.StringVarP(&opts.workdir, "workdir", "w", "", "Working directory inside the container")

docs/reference/compose_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run a one-off command on a service.
1313
| `-i`, `--interactive` | | | Keep STDIN open even if not attached. |
1414
| `-l`, `--label` | `stringArray` | | Add or override a label |
1515
| `--name` | `string` | | Assign a name to the container |
16-
| `-T`, `--no-TTY` | | | Disable pseudo-noTty allocation (default: auto-detected). |
16+
| `-T`, `--no-TTY` | | | Disable pseudo-TTY allocation (default: auto-detected). |
1717
| `--no-deps` | | | Don't start linked services. |
1818
| `-p`, `--publish` | `stringArray` | | Publish a container's port(s) to the host. |
1919
| `--quiet-pull` | | | Pull without printing progress information. |

docs/reference/docker_compose_run.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ options:
125125
shorthand: T
126126
value_type: bool
127127
default_value: "true"
128-
description: 'Disable pseudo-noTty allocation (default: auto-detected).'
128+
description: 'Disable pseudo-TTY allocation (default: auto-detected).'
129129
deprecated: false
130130
hidden: false
131131
experimental: false

0 commit comments

Comments
 (0)