getargs: fix the locations of command-line input

* src/getargs.c (command_line_location): Here.
* tests/input.at: Adjust.
This commit is contained in:
Theophile Ranquet
2012-03-12 10:01:09 +01:00
parent d4e985d587
commit a37131cc63
2 changed files with 8 additions and 8 deletions

View File

@@ -556,7 +556,7 @@ command_line_location (void)
{
location res;
/* "<command line>" is used in GCC's messages about -D. */
boundary_set (&res.start, uniqstr_new ("<command line>"), optind, -1);
boundary_set (&res.start, uniqstr_new ("<command line>"), optind - 1, -1);
res.end = res.start;
return res;
}