From b1e43dbc99a8d1cfc7116a1a3d9e2acb1f859629 Mon Sep 17 00:00:00 2001 From: jozan Date: Wed, 4 Nov 2020 12:52:30 +0000 Subject: In progress FossilOrigin-Name: f147216aea46f8ba720c9730bcc37b1984145e9970687669f86917bec91fc3ca --- src/c_opts.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/c_opts.c') 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]); } -- cgit v1.2.3