aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_opts.c')
-rw-r--r--src/c_opts.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c_opts.c b/src/c_opts.c
index f129cbf..fedc26a 100644
--- a/src/c_opts.c
+++ b/src/c_opts.c
@@ -103,6 +103,9 @@ c_recursive_parse
else if ((*ptr)[0] == 'i') {
opts->confirm = TRUE;
}
+ else if ((*ptr)[0] == 'k') {
+ opts->preserve = TRUE;
+ }
else if ((*ptr)[0] == 'n') {
opts->hyphen = TRUE;
}
@@ -139,6 +142,7 @@ c_get_opts
opts->confirm = FALSE;
opts->hidden = FALSE;
opts->hyphen = FALSE;
+ opts->preserve = FALSE;
opts->pretend = FALSE;
opts->recursive = FALSE;
opts->verbose = FALSE;
@@ -157,6 +161,9 @@ c_get_opts
else if (opt == 'i') {
opts->confirm = TRUE;
}
+ else if (opt == 'k') {
+ opts->preserve = TRUE;
+ }
else if (opt == 'n') {
opts->hyphen = TRUE;
}