diff options
Diffstat (limited to 'src/c_opts.c')
-rw-r--r-- | src/c_opts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/c_opts.c b/src/c_opts.c index 7c8170e..77c55b1 100644 --- a/src/c_opts.c +++ b/src/c_opts.c @@ -65,6 +65,9 @@ c_opts(struct opts_s* opts, int argc, const char* argv[]) else if (opt == 'v') { opts->verbose = TRUE; } + else if (opt == 'p') { + opts->pretend = TRUE; + } else if (opt == '?') { dprintf( STDERR_FILENO, @@ -74,6 +77,9 @@ c_opts(struct opts_s* opts, int argc, const char* argv[]) exit(1); } } + if (opts->pretend == TRUE) { + opts->verbose = TRUE; + } if (optind < argc && argv[optind] != NULL) { printf("arg: %s\n", argv[optind]); } |