mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s4:torture: Write better error on invalid cmdline option
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
30fb11dafd
commit
59c97b09a8
@ -521,7 +521,9 @@ int main(int argc, const char *argv[])
|
||||
break;
|
||||
default:
|
||||
if (opt < 0) {
|
||||
printf("bad command line option %d\n", opt);
|
||||
printf("Invalid command line option %s (%d)\n",
|
||||
poptBadOption(pc, 0),
|
||||
opt);
|
||||
talloc_free(mem_ctx);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user