From: Paul Jakma Date: Thu, 6 Aug 2009 10:48:48 +0000 (+0100) Subject: zebra: test_main.c should be a bit more helpful about its usage X-Git-Tag: frr-2.0-rc1~2208 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=302d53f791031c15590f59944313381dfb4200c6;p=mirror%2Ffrr.git zebra: test_main.c should be a bit more helpful about its usage * test_main.c: If required arguments are missing, say that. --- diff --git a/zebra/test_main.c b/zebra/test_main.c index 4398a389d4..70a1a3a650 100644 --- a/zebra/test_main.c +++ b/zebra/test_main.c @@ -270,7 +270,11 @@ main (int argc, char **argv) /* port and conf file mandatory */ if (!vty_port || !config_file) - usage (progname, 1); + { + fprintf (stderr, "Error: --vty_port and --config_file arguments" + " are both required\n"); + usage (progname, 1); + } /* Make master thread emulator. */ zebrad.master = thread_master_create ();