Skip to content

Commit 8d4846f

Browse files
authored
docs: remove extra whitespaces in help text (docker#9710)
Remove superfluous whitespaces Signed-off-by: Khoa Le <[email protected]>
1 parent 92f32b5 commit 8d4846f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/compose/down.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func downCommand(p *projectOptions, backend api.Service) *cobra.Command {
6565
removeOrphans := utils.StringToBool(os.Getenv("COMPOSE_REMOVE_ORPHANS"))
6666
flags.BoolVar(&opts.removeOrphans, "remove-orphans", removeOrphans, "Remove containers for services not defined in the Compose file.")
6767
flags.IntVarP(&opts.timeout, "timeout", "t", 10, "Specify a shutdown timeout in seconds")
68-
flags.BoolVarP(&opts.volumes, "volumes", "v", false, " Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers.")
68+
flags.BoolVarP(&opts.volumes, "volumes", "v", false, "Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers.")
6969
flags.StringVar(&opts.images, "rmi", "", `Remove images used by services. "local" remove only images that don't have a custom tag ("local"|"all")`)
7070
flags.SetNormalizeFunc(func(f *pflag.FlagSet, name string) pflag.NormalizedName {
7171
if name == "volume" {

cmd/compose/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func runCommand(p *projectOptions, dockerCli command.Cli, backend api.Service) *
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")
153153
flags.BoolVarP(&opts.noTty, "no-TTY", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-TTY allocation (default: auto-detected).")
154-
flags.StringVar(&opts.name, "name", "", " Assign a name to the container")
154+
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")
157157
flags.StringVar(&opts.entrypoint, "entrypoint", "", "Override the entrypoint of the image")

docs/reference/compose_down.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Stop and remove containers, networks
1010
| `--remove-orphans` | | | Remove containers for services not defined in the Compose file. |
1111
| `--rmi` | `string` | | Remove images used by services. "local" remove only images that don't have a custom tag ("local"\|"all") |
1212
| `-t`, `--timeout` | `int` | `10` | Specify a shutdown timeout in seconds |
13-
| `-v`, `--volumes` | | | Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers. |
13+
| `-v`, `--volumes` | | | Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers. |
1414

1515

1616
<!---MARKER_GEN_END-->

docs/reference/compose_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Run a one-off command on a service.
1212
| `-e`, `--env` | `stringArray` | | Set environment variables |
1313
| `-i`, `--interactive` | | | Keep STDIN open even if not attached. |
1414
| `-l`, `--label` | `stringArray` | | Add or override a label |
15-
| `--name` | `string` | | Assign a name to the container |
15+
| `--name` | `string` | | Assign a name to the container |
1616
| `-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. |

0 commit comments

Comments
 (0)