From: Denys Vlasenko Date: Tue, 7 Sep 2010 16:41:56 +0000 (+0200) Subject: nc: show help text on bad parameters X-Git-Tag: 1_18_0~240 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b103fb10cfb09902df1581efc81ea386e63c71b5;p=oweals%2Fbusybox.git nc: show help text on bad parameters Signed-off-by: Denys Vlasenko --- diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c index dbcce8bf4..6b5b176c9 100644 --- a/networking/nc_bloaty.c +++ b/networking/nc_bloaty.c @@ -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)