summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-15 18:27:57 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-15 20:03:00 +1100
commitffa8c45372fb3404d03b368b51e29c3338f13748 (patch)
tree002403dea098e8dd13f33ff1bc4eb6f09211540a /source4/torture/smbtorture.c
parentc5cfda9e8a8826dbc2ade5116b0648575efe5ae7 (diff)
downloadsamba-ffa8c45372fb3404d03b368b51e29c3338f13748.tar.gz
samba-ffa8c45372fb3404d03b368b51e29c3338f13748.tar.bz2
samba-ffa8c45372fb3404d03b368b51e29c3338f13748.zip
s4-torture: catch bad command line options
It is annoying when you mistype a command line option and aren't told.
Diffstat (limited to 'source4/torture/smbtorture.c')
-rw-r--r--source4/torture/smbtorture.c3
1 files changed, 3 insertions, 0 deletions
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);
}
}