From a0b3cf16cdd208ca9b0c86631999df047cbe8817 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 31 May 2014 23:15:25 -0700 Subject: Print which option was in error along with usage message Signed-off-by: Alan Coopersmith --- dsimple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dsimple.c') diff --git a/dsimple.c b/dsimple.c index 2ec899c..67e59c0 100644 --- a/dsimple.c +++ b/dsimple.c @@ -75,7 +75,7 @@ Get_Display_Name(int *pargc/* MODIFIED */, char **argv/* MODIFIED */) char *arg = argv[i]; if (!strcmp (arg, "-display") || !strcmp (arg, "-d")) { - if (++i >= argc) usage (); + if (++i >= argc) usage ("-display requires an argument"); displayname = argv[i]; *pargc -= 2; -- cgit v1.2.3