From 6d9d75406cf2ebeef8a090932dc4b97b022c57d9 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Wed, 4 May 2022 17:35:03 +0200 Subject: [PATCH] update usage of the index flag of the cp command Signed-off-by: Guillaume Lours --- cmd/compose/cp.go | 2 +- docs/reference/compose_cp.md | 2 +- docs/reference/docker_compose_cp.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/compose/cp.go b/cmd/compose/cp.go index f0919ca7..80492075 100644 --- a/cmd/compose/cp.go +++ b/cmd/compose/cp.go @@ -64,7 +64,7 @@ func copyCommand(p *projectOptions, backend api.Service) *cobra.Command { } flags := copyCmd.Flags() - flags.IntVar(&opts.index, "index", 0, "Index of the container if there are multiple instances of a service [default: 1 when copying from a container].") + flags.IntVar(&opts.index, "index", 0, "Index of the container if there are multiple instances of a service .") flags.BoolVar(&opts.all, "all", false, "Copy to all the containers of the service.") flags.MarkHidden("all") //nolint:errcheck flags.MarkDeprecated("all", "By default all the containers of the service will get the source file/directory to be copied.") //nolint:errcheck diff --git a/docs/reference/compose_cp.md b/docs/reference/compose_cp.md index f9bc2143..dd9a02e6 100644 --- a/docs/reference/compose_cp.md +++ b/docs/reference/compose_cp.md @@ -9,7 +9,7 @@ Copy files/folders between a service container and the local filesystem | --- | --- | --- | --- | | `-a`, `--archive` | | | Archive mode (copy all uid/gid information) | | `-L`, `--follow-link` | | | Always follow symbol link in SRC_PATH | -| `--index` | `int` | `0` | Index of the container if there are multiple instances of a service [default: 1 when copying from a container]. | +| `--index` | `int` | `0` | Index of the container if there are multiple instances of a service . | diff --git a/docs/reference/docker_compose_cp.yaml b/docs/reference/docker_compose_cp.yaml index fd3ef642..9f338242 100644 --- a/docs/reference/docker_compose_cp.yaml +++ b/docs/reference/docker_compose_cp.yaml @@ -42,7 +42,7 @@ options: value_type: int default_value: "0" description: | - Index of the container if there are multiple instances of a service [default: 1 when copying from a container]. + Index of the container if there are multiple instances of a service . deprecated: false hidden: false experimental: false