Move the -l option processing to where it belongs.

Overall still not kosher but better matches style(9).
This commit is contained in:
Ruslan Ermilov 2006-09-29 06:06:39 +00:00
parent 5a8e64ee60
commit 64941e9d80

View File

@ -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;