Enable errors about non-existing CLI options

Set opterr and optind to their normal default values.
This commit is contained in:
Ari Koivula 2016-02-04 13:45:44 +02:00
parent 7a4bf94a52
commit e941e21cd6

View file

@ -85,8 +85,8 @@ static const char *progname;
/* These are used to replace unistd.h include. */
char *optarg = 0;
int optind = 0;
int opterr = 0;
int optind = 1;
int opterr = 1;
int optopt = 0;
int optreset = 0;