r856: wrongly reported for an unrecognized option

Resolved #250
This commit is contained in:
Heng Li 2018-10-19 20:07:14 -04:00
parent 20268a6068
commit 7b0a49732e
1 changed files with 2 additions and 2 deletions

4
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h"
#include "ketopt.h"
#define MM_VERSION "2.13-r852-dirty"
#define MM_VERSION "2.13-r856-dirty"
#ifdef __linux__
#include <sys/resource.h>
@ -122,7 +122,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "[ERROR] missing option argument\n");
return 1;
} else if (c == '?') {
fprintf(stderr, "[ERROR] unknown option in \"%s\"\n", argv[o.i]);
fprintf(stderr, "[ERROR] unknown option in \"%s\"\n", argv[o.i - 1]);
return 1;
}
}