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;
|
||||
|
||||
ARGBEGIN {
|
||||
case 'H': gflags.l = !(gflags.h = 1); break;
|
||||
case 'L': gflags.h = !(gflags.l = 1); break;
|
||||
default : usage();
|
||||
case 'H':
|
||||
gflags.h = 1;
|
||||
gflags.l = 0;
|
||||
break;
|
||||
case 'L':
|
||||
gflags.l = 1;
|
||||
gflags.h = 0;
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
} ARGEND
|
||||
|
||||
paths = argv;
|
||||
|
Loading…
Reference in New Issue
Block a user