From dcd810a69df2c997671bdf572adb02157af9db1c Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Wed, 24 May 2023 19:40:27 +0200 Subject: [PATCH] fix display of volumes flag in down help command Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- cmd/compose/down.go | 2 +- docs/reference/compose_down.md | 2 +- docs/reference/docker_compose_down.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/compose/down.go b/cmd/compose/down.go index 772d863a4e..8a997b2561 100644 --- a/cmd/compose/down.go +++ b/cmd/compose/down.go @@ -64,7 +64,7 @@ func downCommand(p *ProjectOptions, backend api.Service) *cobra.Command { removeOrphans := utils.StringToBool(os.Getenv(ComposeRemoveOrphans)) flags.BoolVar(&opts.removeOrphans, "remove-orphans", removeOrphans, "Remove containers for services not defined in the Compose file.") flags.IntVarP(&opts.timeout, "timeout", "t", 10, "Specify a shutdown timeout in seconds") - 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.") + 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.`) flags.StringVar(&opts.images, "rmi", "", `Remove images used by services. "local" remove only images that don't have a custom tag ("local"|"all")`) flags.SetNormalizeFunc(func(f *pflag.FlagSet, name string) pflag.NormalizedName { if name == "volume" { diff --git a/docs/reference/compose_down.md b/docs/reference/compose_down.md index 994ad33be8..3f80f9b774 100644 --- a/docs/reference/compose_down.md +++ b/docs/reference/compose_down.md @@ -11,7 +11,7 @@ Stop and remove containers, networks | `--remove-orphans` | | | Remove containers for services not defined in the Compose file. | | `--rmi` | `string` | | Remove images used by services. "local" remove only images that don't have a custom tag ("local"\|"all") | | `-t`, `--timeout` | `int` | `10` | Specify a shutdown timeout in seconds | -| `-v`, `--volumes` | | | Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers. | +| `-v`, `--volumes` | | | Remove named volumes declared in the "volumes" section of the Compose file and anonymous volumes attached to containers. | diff --git a/docs/reference/docker_compose_down.yaml b/docs/reference/docker_compose_down.yaml index e6183eeead..6c67247803 100644 --- a/docs/reference/docker_compose_down.yaml +++ b/docs/reference/docker_compose_down.yaml @@ -54,7 +54,7 @@ options: value_type: bool default_value: "false" description: | - Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers. + Remove named volumes declared in the "volumes" section of the Compose file and anonymous volumes attached to containers. deprecated: false hidden: false experimental: false