nc: show help text on bad parameters
authorDenys Vlasenko <dvlasenk@redhat.com>
Tue, 7 Sep 2010 16:41:56 +0000 (18:41 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 7 Sep 2010 16:41:56 +0000 (18:41 +0200)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
networking/nc_bloaty.c

index dbcce8bf438fd1f8da425519240e9c2517ebfba1..6b5b176c9657bd1c8b50fc9869ae1937f5faf198 100644 (file)
@@ -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)