aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-09-07 18:41:56 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-07 18:41:56 +0200
commitb103fb10cfb09902df1581efc81ea386e63c71b5 (patch)
treec6e79eb6758a794013a2c8e3b0706acf70afdd59
parentd55f599440c65c0808c6d14b339f6175995fcf7c (diff)
downloadbusybox-w32-b103fb10cfb09902df1581efc81ea386e63c71b5.tar.gz
busybox-w32-b103fb10cfb09902df1581efc81ea386e63c71b5.tar.bz2
busybox-w32-b103fb10cfb09902df1581efc81ea386e63c71b5.zip
nc: show help text on bad parameters
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--networking/nc_bloaty.c2
1 files changed, 1 insertions, 1 deletions
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)
858 } else { 858 } else {
859 /* Outbound connects. Now we're more picky about args... */ 859 /* Outbound connects. Now we're more picky about args... */
860 if (!themaddr) 860 if (!themaddr)
861 bb_error_msg_and_die("no destination"); 861 bb_show_usage();
862 862
863 remend = *themaddr; 863 remend = *themaddr;
864 if (o_verbose) 864 if (o_verbose)