]> git.samba.org - kai/samba-autobuild/.git/commitdiff
s4-torture: catch bad command line options
authorAndrew Tridgell <tridge@samba.org>
Thu, 15 Oct 2009 07:27:57 +0000 (18:27 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 15 Oct 2009 09:03:00 +0000 (20:03 +1100)
It is annoying when you mistype a command line option and aren't told.

source4/torture/smbtorture.c

index dbd45bf8af1c92dc0894131403ced657b5ed0b68..08c5748a4075576ec2d4c87493950188fab0ce8e 100644 (file)
@@ -519,6 +519,9 @@ int main(int argc,char *argv[])
                                talloc_free(option);
                        }
                        break;
+               default:
+                       printf("bad command line option\n");
+                       exit(1);
                }
        }