nc: show help text on bad parameters
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
d55f599440
commit
b103fb10cf
@ -858,7 +858,7 @@ int nc_main(int argc UNUSED_PARAM, char **argv)
|
||||
} else {
|
||||
/* Outbound connects. Now we're more picky about args... */
|
||||
if (!themaddr)
|
||||
bb_error_msg_and_die("no destination");
|
||||
bb_show_usage();
|
||||
|
||||
remend = *themaddr;
|
||||
if (o_verbose)
|
||||
|
Loading…
Reference in New Issue
Block a user