cp: Update program usage and manpages
Do not document the non-standard -r flag as it is highly discouraged. It is still silently accepted and treated the same as -R.
This commit is contained in:
12
cp.c
12
cp.c
@@ -7,7 +7,7 @@
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
eprintf("usage: %s [-adfpRrv] source... dest\n", argv0);
|
||||
eprintf("usage: %s [-afpv] [-R [-H | -L | -P]] source... dest\n", argv0);
|
||||
}
|
||||
|
||||
int
|
||||
@@ -21,11 +21,14 @@ main(int argc, char *argv[])
|
||||
cp_HLPflag = 'P';
|
||||
cp_aflag = cp_pflag = cp_rflag = 1;
|
||||
break;
|
||||
case 'f':
|
||||
cp_fflag = 1;
|
||||
break;
|
||||
case 'p':
|
||||
cp_pflag = 1;
|
||||
break;
|
||||
case 'f':
|
||||
cp_fflag = 1;
|
||||
case 'v':
|
||||
cp_vflag = 1;
|
||||
break;
|
||||
case 'r':
|
||||
case 'R':
|
||||
@@ -36,9 +39,6 @@ main(int argc, char *argv[])
|
||||
case 'P':
|
||||
cp_HLPflag = ARGC();
|
||||
break;
|
||||
case 'v':
|
||||
cp_vflag = 1;
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
} ARGEND;
|
||||
|
Reference in New Issue
Block a user