Browse Source

update usage of the index flag of the cp command

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 3 năm trước cách đây
mục cha
commit
6d9d75406c

+ 1 - 1
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

+ 1 - 1
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 . |
 
 
 <!---MARKER_GEN_END-->

+ 1 - 1
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