From 44b0dcefb70cd8ffd18f6513c655c137fdd1985e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 15 Oct 2009 18:27:57 +1100 Subject: [PATCH] s4-torture: catch bad command line options It is annoying when you mistype a command line option and aren't told. --- source4/torture/smbtorture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index dbd45bf8af1..08c5748a407 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -519,6 +519,9 @@ int main(int argc,char *argv[]) talloc_free(option); } break; + default: + printf("bad command line option\n"); + exit(1); } } -- 2.11.4.GIT