Skip to content

Commit 044dea2

Browse files
committed
fix(cp): clarify --archive flag only applies when copying to container
The --archive (-a) flag description was misleading. Updated to clarify that it preserves uid/gid from the source, and that it only takes effect when copying files TO a container (not from). Fixes #6870
1 parent 397a379 commit 044dea2

File tree

1 file changed

+1
-1
lines changed
  • cli/command/container

1 file changed

+1
-1
lines changed

cli/command/container/cp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ container source to stdout.`,
159159

160160
flags := cmd.Flags()
161161
flags.BoolVarP(&opts.followLink, "follow-link", "L", false, "Always follow symbol link in SRC_PATH")
162-
flags.BoolVarP(&opts.copyUIDGID, "archive", "a", false, "Archive mode (copy all uid/gid information)")
162+
flags.BoolVarP(&opts.copyUIDGID, "archive", "a", false, "Archive mode (preserve uid/gid from source when copying to container)")
163163
flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Suppress progress output during copy. Progress output is automatically suppressed if no terminal is attached")
164164
return cmd
165165
}

0 commit comments

Comments
 (0)