summaryrefslogtreecommitdiff
path: root/zebra/test_main.c
diff options
context:
space:
mode:
authorPaul Jakma <paul@quagga.net>2009-08-06 11:48:48 +0100
committerPaul Jakma <paul@quagga.net>2009-08-28 14:51:27 +0100
commit302d53f791031c15590f59944313381dfb4200c6 (patch)
treedbadd21327e5445860193e1511863f2fa11b6185 /zebra/test_main.c
parent3e4ee9591aa2d84f01ae478afd273ac55add0a1c (diff)
zebra: test_main.c should be a bit more helpful about its usage
* test_main.c: If required arguments are missing, say that.
Diffstat (limited to 'zebra/test_main.c')
-rw-r--r--zebra/test_main.c6
1 files changed, 5 insertions, 1 deletions
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 ();