update usage of the index flag of the cp command

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
Guillaume Lours 2022-05-04 17:35:03 +02:00 committed by Nicolas De loof
parent a964d5587b
commit 6d9d75406c
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ func copyCommand(p *projectOptions, backend api.Service) *cobra.Command {
} }
flags := copyCmd.Flags() 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.BoolVar(&opts.all, "all", false, "Copy to all the containers of the service.")
flags.MarkHidden("all") //nolint:errcheck 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 flags.MarkDeprecated("all", "By default all the containers of the service will get the source file/directory to be copied.") //nolint:errcheck

View File

@ -9,7 +9,7 @@ Copy files/folders between a service container and the local filesystem
| --- | --- | --- | --- | | --- | --- | --- | --- |
| `-a`, `--archive` | | | Archive mode (copy all uid/gid information) | | `-a`, `--archive` | | | Archive mode (copy all uid/gid information) |
| `-L`, `--follow-link` | | | Always follow symbol link in SRC_PATH | | `-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 . |
<!---MARKER_GEN_END--> <!---MARKER_GEN_END-->

View File

@ -42,7 +42,7 @@ options:
value_type: int value_type: int
default_value: "0" default_value: "0"
description: | 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 deprecated: false
hidden: false hidden: false
experimental: false experimental: false