git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5cfda9
)
s4-torture: catch bad command line options
author
Andrew Tridgell
<tridge@samba.org>
Thu, 15 Oct 2009 07:27:57 +0000
(18:27 +1100)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source4/torture/smbtorture.c
b/source4/torture/smbtorture.c
index dbd45bf8af1c92dc0894131403ced657b5ed0b68..08c5748a4075576ec2d4c87493950188fab0ce8e 100644
(file)
--- 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);
}
}