nc: show help text on bad parameters

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2010-09-07 18:41:56 +02:00
parent d55f599440
commit b103fb10cf

View File

@ -858,7 +858,7 @@ int nc_main(int argc UNUSED_PARAM, char **argv)
} else { } else {
/* Outbound connects. Now we're more picky about args... */ /* Outbound connects. Now we're more picky about args... */
if (!themaddr) if (!themaddr)
bb_error_msg_and_die("no destination"); bb_show_usage();
remend = *themaddr; remend = *themaddr;
if (o_verbose) if (o_verbose)