From ffa8c45372fb3404d03b368b51e29c3338f13748 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 15 Oct 2009 18:27:57 +1100 Subject: 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(+) (limited to 'source4') diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index dbd45bf8af..08c5748a40 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); } } -- cgit