find: Exit if there is an unknown option.

Ignoring the parameter with the unknown options is unlikely to be what was
intended.

Example:
  find -n .

Note that things like
  find -n
already caused an exit, equivalent to "find" by itself.
This commit is contained in:
Jilles Tjoelker 2011-06-04 21:59:55 +00:00
parent 884a2a6996
commit 535d7745a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222697

View File

@ -120,7 +120,7 @@ main(int argc, char *argv[])
break;
case '?':
default:
break;
usage();
}
argc -= optind;