nc: show help text on bad parameters
[oweals/busybox.git] / 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)