mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Make smbclient to display error message and usage in the case of invalid options.
This commit is contained in:
parent
075d315e0f
commit
04131b26de
@ -4654,6 +4654,11 @@ static int do_message_op(void)
|
||||
case 'g':
|
||||
grepable=true;
|
||||
break;
|
||||
default:
|
||||
d_fprintf(stderr, "\nInvalid option %s: %s\n\n",
|
||||
poptBadOption(pc, 0), poptStrerror(opt));
|
||||
poptPrintUsage(pc, stderr, 0);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user