diff options
Diffstat (limited to 'src/nsgenbind.c')
-rw-r--r-- | src/nsgenbind.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nsgenbind.c b/src/nsgenbind.c index 66292a9..0f549f9 100644 --- a/src/nsgenbind.c +++ b/src/nsgenbind.c @@ -30,7 +30,7 @@ static struct options* process_cmdline(int argc, char **argv) return NULL; } - while ((opt = getopt(argc, argv, "vDd:I:o:")) != -1) { + while ((opt = getopt(argc, argv, "vDW::d:I:o:")) != -1) { switch (opt) { case 'I': options->idlpath = strdup(optarg); @@ -52,6 +52,10 @@ static struct options* process_cmdline(int argc, char **argv) options->debug = true; break; + case 'W': + options->warnings = 1; /* warning flags */ + break; + default: /* '?' */ fprintf(stderr, "Usage: %s [-d depfilename] [-I idlpath] [-o filename] inputfile\n", |