diff options
author | jozan <jozan@noemail.net> | 2020-11-12 18:28:47 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-12 18:28:47 +0000 |
commit | ed993cd7c1d87215a93df5e262e4fba3ce57c442 (patch) | |
tree | bc142f62248c8f22ebe8b4f626c786bab2e45794 /src/c_opts.c | |
parent | In progress (diff) | |
download | unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.tar.gz unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.tar.bz2 unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.tar.xz unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.tar.zst unixize-ed993cd7c1d87215a93df5e262e4fba3ce57c442.zip |
In progress
FossilOrigin-Name: 67a34a272b1dbb5370844efe2378b87c51c0e56c856cf7554993367bab6bfa47
Diffstat (limited to 'src/c_opts.c')
-rw-r--r-- | src/c_opts.c | 7 |
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; } |