diff options
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 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, |