code: func NewCmdCp(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
  	o := NewCopyOptions(ioStreams)
  
  	cmd := &cobra.Command{
  		Use:                   "cp <file-spec-src> <file-spec-dest>",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Copy files and directories to and from containers."),
  		Long:                  "Copy files and directories to and from containers.",
  		Example:               cpExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(f, cmd))
  			cmdutil.CheckErr(o.Run(args))
  		},
  	}
  	cmd.Flags().StringVarP(&o.Container, "container", "c", o.Container, "Container name. If omitted, the first container in the pod will be chosen")
  	cmd.Flags().BoolVarP(&o.NoPreserve, "no-preserve", "", false, "The copied file/directory's ownership and permissions will not be preserved in the container")
  
  	return cmd
  }
docs: // NewCmdCp creates a new Copy command.