diff options
author | Bert <ber.t@gmx.com> | 2011-04-11 08:52:07 +0200 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-04-11 08:52:07 +0200 |
commit | bac610ddc486fba1f6d40cd5a9a95fbb2bc6c8e5 (patch) | |
tree | c8f678d0a0926c30cd211807b1aa2f3c612304fc /options.c | |
parent | b2f1b997ed60a40ffb9c0964ed0716c375b30072 (diff) | |
parent | dd9e5dabb155fb9bb06d5a8e5fd6717df1751762 (diff) |
Merge branch 'tcache'
Conflicts:
main.c
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -31,7 +31,7 @@ options_t _options; const options_t *options = (const options_t*) &_options; void print_usage() { - printf("usage: sxiv [-adFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n"); + printf("usage: sxiv [-aCdFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n"); } void print_version() { @@ -53,9 +53,10 @@ void parse_options(int argc, char **argv) { _options.all = 0; _options.quiet = 0; + _options.clean_cache = 0; _options.recursive = 0; - while ((opt = getopt(argc, argv, "adFfg:hpqrstvZz:")) != -1) { + while ((opt = getopt(argc, argv, "aCdFfg:hpqrstvZz:")) != -1) { switch (opt) { case '?': print_usage(); @@ -63,6 +64,9 @@ void parse_options(int argc, char **argv) { case 'a': _options.all = 1; break; + case 'C': + _options.clean_cache = 1; + break; case 'd': _options.scalemode = SCALE_DOWN; break; |