find: Make -H and -L flag handling clearer
This commit is contained in:
parent
d8656b0189
commit
48d04ae446
13
find.c
13
find.c
|
@ -1023,9 +1023,16 @@ main(int argc, char **argv)
|
||||||
struct tok *t;
|
struct tok *t;
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'H': gflags.l = !(gflags.h = 1); break;
|
case 'H':
|
||||||
case 'L': gflags.h = !(gflags.l = 1); break;
|
gflags.h = 1;
|
||||||
default : usage();
|
gflags.l = 0;
|
||||||
|
break;
|
||||||
|
case 'L':
|
||||||
|
gflags.l = 1;
|
||||||
|
gflags.h = 0;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
usage();
|
||||||
} ARGEND
|
} ARGEND
|
||||||
|
|
||||||
paths = argv;
|
paths = argv;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user