.Pp
The following options are available:
.Bl -tag -width flag
.It Fl a
Same as specifying the
.Fl R
.Fl P
and
.Fl p
flags.
.It Fl H
If the
The
.Fl v
option is non-standard and its use in scripts is not recommended.
.Fl a
options are non-standard and use in scripts is not recommended.
.Sh SEE ALSO
.Xr mv 1 ,
.Xr rcp 1 ,
char *target;
Hflag = Lflag = Pflag = 0;
while ((ch = getopt(argc, argv, "HLPRfiprv")) != -1)
while ((ch = getopt(argc, argv, "aHLPRfiprv")) != -1)
switch (ch) {
case 'H':
Hflag = 1;
Lflag = 1;
Hflag = Pflag = 0;
break;
case 'a':
Rflag = 1;
pflag = 1;
/* FALLTHROUGH */
case 'P':
Pflag = 1;
Hflag = Lflag = 0;
{
(void)fprintf(stderr, "%s\n%s\n",
"usage: cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target",
"usage: cp [-R [-H | -L | -P]] [-f | -i] [-apv] src target",
" cp [-R [-H | -L | -P]] [-f | -i] [-pv] src1 ... srcN directory");
" cp [-R [-H | -L | -P]] [-f | -i] [-apv] src1 ... srcN directory");
exit(EX_USAGE);
}