summaryrefslogtreecommitdiff
path: root/src/nsgenbind.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-08-10 18:00:07 +0100
committerVincent Sanders <vince@kyllikki.org>2015-08-10 18:00:07 +0100
commit26b75830ab942bc9116e8769652afa24d0d9550d (patch)
tree107f401c7f85f79fb23c242af228cacd18e49e53 /src/nsgenbind.c
parent63745977ad219ca9474462268651f77e49218956 (diff)
downloadnsgenbind-26b75830ab942bc9116e8769652afa24d0d9550d.tar.gz
nsgenbind-26b75830ab942bc9116e8769652afa24d0d9550d.tar.bz2
Add dry run feature
Diffstat (limited to 'src/nsgenbind.c')
-rw-r--r--src/nsgenbind.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nsgenbind.c b/src/nsgenbind.c
index 173f23d..9558b95 100644
--- a/src/nsgenbind.c
+++ b/src/nsgenbind.c
@@ -39,7 +39,7 @@ static struct options* process_cmdline(int argc, char **argv)
return NULL;
}
- while ((opt = getopt(argc, argv, "vgDW::I:")) != -1) {
+ while ((opt = getopt(argc, argv, "vngDW::I:")) != -1) {
switch (opt) {
case 'I':
options->idlpath = strdup(optarg);
@@ -49,6 +49,10 @@ static struct options* process_cmdline(int argc, char **argv)
options->verbose = true;
break;
+ case 'n':
+ options->dryrun = true;
+ break;
+
case 'D':
options->debug = true;
break;