diff options
author | jozan <jozan@noemail.net> | 2020-11-04 16:37:29 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-04 16:37:29 +0000 |
commit | 33ac9fb19a680951364c2664ac440b96166b95e0 (patch) | |
tree | 5a384a2ae3d4b29ecd88b6003ded4433af5c5e78 /src/c_opts.c | |
parent | In progress (diff) | |
download | unixize-33ac9fb19a680951364c2664ac440b96166b95e0.tar.gz unixize-33ac9fb19a680951364c2664ac440b96166b95e0.tar.bz2 unixize-33ac9fb19a680951364c2664ac440b96166b95e0.tar.xz unixize-33ac9fb19a680951364c2664ac440b96166b95e0.tar.zst unixize-33ac9fb19a680951364c2664ac440b96166b95e0.zip |
In progress
FossilOrigin-Name: 7845373df4c5e041847297f7b10d25d65002f566a6a14a33a5df4e100d39ef6d
Diffstat (limited to '')
-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 77c55b1..98f60cb 100644 --- a/src/c_opts.c +++ b/src/c_opts.c @@ -58,6 +58,9 @@ c_opts(struct opts_s* opts, int argc, const char* argv[]) opts->recursive = FALSE; opts->verbose = FALSE; + opts->pretend = FALSE; + opts->hidden = FALSE; + opts->hyphen = FALSE; while ((opt = getopt(argc, (char *const *)argv, C_OPTS)) != -1) { if (opt == 'R') { opts->recursive = TRUE; @@ -68,6 +71,10 @@ c_opts(struct opts_s* opts, int argc, const char* argv[]) else if (opt == 'p') { opts->pretend = TRUE; } + else if (opt == 'h') { + /* c_dump_usage(); */ + exit(0); + } else if (opt == '?') { dprintf( STDERR_FILENO, |