diff options
author | ru <ru@FreeBSD.org> | 2006-09-29 06:06:39 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-09-29 06:06:39 +0000 |
commit | 92c53717674e99dc7941484cdefd7da4d9cfbab3 (patch) | |
tree | 746e3895731d20938cf79beaf6782f511c78aa6c /bin | |
parent | 16c630b2da91a861af574114cfd4143167108874 (diff) | |
download | FreeBSD-src-92c53717674e99dc7941484cdefd7da4d9cfbab3.zip FreeBSD-src-92c53717674e99dc7941484cdefd7da4d9cfbab3.tar.gz |
Move the -l option processing to where it belongs.
Overall still not kosher but better matches style(9).
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cp/cp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index e87588b..cad0710 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -102,7 +102,7 @@ main(int argc, char *argv[]) char *target; Hflag = Lflag = Pflag = 0; - while ((ch = getopt(argc, argv, "HLPRfinprvl")) != -1) + while ((ch = getopt(argc, argv, "HLPRfilnprv")) != -1) switch (ch) { case 'H': Hflag = 1; @@ -127,6 +127,9 @@ main(int argc, char *argv[]) iflag = 1; fflag = nflag = 0; break; + case 'l': + lflag = 1; + break; case 'n': nflag = 1; fflag = iflag = 0; @@ -140,9 +143,6 @@ main(int argc, char *argv[]) case 'v': vflag = 1; break; - case 'l': - lflag = 1; - break; default: usage(); break; |