diff options
author | sabetts <sabetts> | 2005-01-15 18:40:47 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2005-01-15 18:40:47 +0000 |
commit | 5b57d35cfa51cc145c567465ea00ae564a4b61a1 (patch) | |
tree | e829a78530008afc79b36d6ceacc10f8848d67a4 /src | |
parent | 146017faf8f36c5e0d0a0d34b84e69ded3428504 (diff) | |
download | ratpoison-5b57d35cfa51cc145c567465ea00ae564a4b61a1.zip |
(main): Report extra unparsed arguments.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -566,6 +566,16 @@ main (int argc, char *argv[]) } } + /* Report extra unparsed arguments. */ + if (optind < argc) + { + fprintf (stderr, "Error: junk arguments: "); + while (optind < argc) + fprintf (stderr, "%s ", argv[optind++]); + fputc ('\n', stderr); + exit (EXIT_FAILURE); + } + if (!(dpy = XOpenDisplay (display))) { fprintf (stderr, "Can't open display\n"); |