1
0
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:
Andreas Schneider 2020-12-09 10:49:51 +01:00 committed by Andrew Bartlett
parent 30fb11dafd
commit 59c97b09a8

View File

@ -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);
}