diff options
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index b948c557e8..96dbd69404 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -2455,7 +2455,12 @@ bool parse_args( int argc, char **argv, bool rc_only ) // arg MUST begin with '-' char c = arg[0]; if (c != '-') + { + fprintf(stderr, + "Option '%s' is invalid; options must be prefixed " + "with -\n\n", arg); return (false); + } // look for match (now we also except --scores) if (arg[1] == '-') @@ -2471,7 +2476,11 @@ bool parse_args( int argc, char **argv, bool rc_only ) } if (o == num_cmd_ops) + { + fprintf(stderr, + "Unknown option: %s\n\n", argv[current]); return (false); + } // disallow options specified more than once. if (arg_seen[o] == true) |