Skip to content

Commit 6d9d754

Browse files
gloursndeloof
authored andcommitted
update usage of the index flag of the cp command
Signed-off-by: Guillaume Lours <[email protected]>
1 parent a964d55 commit 6d9d754

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/compose/cp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func copyCommand(p *projectOptions, backend api.Service) *cobra.Command {
6464
}
6565

6666
flags := copyCmd.Flags()
67-
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].")
67+
flags.IntVar(&opts.index, "index", 0, "Index of the container if there are multiple instances of a service .")
6868
flags.BoolVar(&opts.all, "all", false, "Copy to all the containers of the service.")
6969
flags.MarkHidden("all") //nolint:errcheck
7070
flags.MarkDeprecated("all", "By default all the containers of the service will get the source file/directory to be copied.") //nolint:errcheck

docs/reference/compose_cp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Copy files/folders between a service container and the local filesystem
99
| --- | --- | --- | --- |
1010
| `-a`, `--archive` | | | Archive mode (copy all uid/gid information) |
1111
| `-L`, `--follow-link` | | | Always follow symbol link in SRC_PATH |
12-
| `--index` | `int` | `0` | Index of the container if there are multiple instances of a service [default: 1 when copying from a container]. |
12+
| `--index` | `int` | `0` | Index of the container if there are multiple instances of a service . |
1313

1414

1515
<!---MARKER_GEN_END-->

docs/reference/docker_compose_cp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ options:
4242
value_type: int
4343
default_value: "0"
4444
description: |
45-
Index of the container if there are multiple instances of a service [default: 1 when copying from a container].
45+
Index of the container if there are multiple instances of a service .
4646
deprecated: false
4747
hidden: false
4848
experimental: false

0 commit comments

Comments
 (0)