From f97dd0d6de53b93e58d8f2e10a208316b5e9f170 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 1 Oct 2020 00:00:29 +0200 Subject: [PATCH] Quit on unknown option. --- plocate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plocate.cpp b/plocate.cpp index 43cfab7..a50a33a 100644 --- a/plocate.cpp +++ b/plocate.cpp @@ -432,6 +432,8 @@ int main(int argc, char **argv) case '0': print_nul = true; break; + default: + exit(1); } } -- 2.39.2