New option: -C, clean thumbnail cache
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user