tools: Print the correct option in error messages.
This commit is contained in:
parent
c944db5fc0
commit
5d19955007
1 changed files with 1 additions and 1 deletions
|
@ -773,7 +773,7 @@ static inline struct strarray parse_options( int argc, char **argv, const char *
|
|||
char *start, *end;
|
||||
int i;
|
||||
|
||||
#define OPT_ERR(fmt) { callback( '?', strmake( fmt, argv[1] )); continue; }
|
||||
#define OPT_ERR(fmt) { callback( '?', strmake( fmt, argv[i] )); continue; }
|
||||
|
||||
for (i = 1; i < argc; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue