diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-31 23:15:25 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-31 23:15:25 -0700 |
commit | a0b3cf16cdd208ca9b0c86631999df047cbe8817 (patch) | |
tree | 4a1470233ceaff649da7c4456ae3cc381beef4dd /dsimple.c | |
parent | f37a5d583909db89059826cf3dcfe24e7b95164e (diff) |
Print which option was in error along with usage message
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'dsimple.c')
-rw-r--r-- | dsimple.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |