From 302d53f791031c15590f59944313381dfb4200c6 Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Thu, 6 Aug 2009 11:48:48 +0100 Subject: zebra: test_main.c should be a bit more helpful about its usage * test_main.c: If required arguments are missing, say that. --- zebra/test_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'zebra') diff --git a/zebra/test_main.c b/zebra/test_main.c index 4398a389..70a1a3a6 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 (); -- cgit v1.2.1