aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_opts.c
diff options
context:
space:
mode:
authorjozan <jozan@noemail.net>2020-11-04 12:52:30 +0000
committerjozan <jozan@noemail.net>2020-11-04 12:52:30 +0000
commitb1e43dbc99a8d1cfc7116a1a3d9e2acb1f859629 (patch)
treea7a9c4e7836214c6f6b1e495beda820c3c05478a /src/c_opts.c
parentI'll see norm later (diff)
downloadunixize-b1e43dbc99a8d1cfc7116a1a3d9e2acb1f859629.tar.gz
unixize-b1e43dbc99a8d1cfc7116a1a3d9e2acb1f859629.tar.bz2
unixize-b1e43dbc99a8d1cfc7116a1a3d9e2acb1f859629.tar.xz
unixize-b1e43dbc99a8d1cfc7116a1a3d9e2acb1f859629.tar.zst
unixize-b1e43dbc99a8d1cfc7116a1a3d9e2acb1f859629.zip
In progress
FossilOrigin-Name: f147216aea46f8ba720c9730bcc37b1984145e9970687669f86917bec91fc3ca
Diffstat (limited to '')
-rw-r--r--src/c_opts.c6
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]);
}