]> git.sesse.net Git - plocate/commitdiff
Quit on unknown option.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 30 Sep 2020 22:00:29 +0000 (00:00 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 30 Sep 2020 22:00:29 +0000 (00:00 +0200)
plocate.cpp

index 43cfab7da955bd62b708e3a0c30a251c74dc89f9..a50a33afa4cabc4b0cb2fdf792d40db74cab852f 100644 (file)
@@ -432,6 +432,8 @@ int main(int argc, char **argv)
                case '0':
                        print_nul = true;
                        break;
+               default:
+                       exit(1);
                }
        }