diff options
author | jilles <jilles@FreeBSD.org> | 2011-06-04 21:59:55 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-06-04 21:59:55 +0000 |
commit | 786c89f781c52e7423abdc562256ef0830f60be6 (patch) | |
tree | 419edb2b4cdef3071363ecbae8c5b7dc12259544 /usr.bin/find | |
parent | e9d242e0e447f3025156133301d432e91adaab05 (diff) | |
download | FreeBSD-src-786c89f781c52e7423abdc562256ef0830f60be6.zip FreeBSD-src-786c89f781c52e7423abdc562256ef0830f60be6.tar.gz |
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.
Diffstat (limited to 'usr.bin/find')
-rw-r--r-- | usr.bin/find/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c index 2c11936..d901623 100644 --- a/usr.bin/find/main.c +++ b/usr.bin/find/main.c @@ -120,7 +120,7 @@ main(int argc, char *argv[]) break; case '?': default: - break; + usage(); } argc -= optind; |