From dc54981a68589c719937c82c36eeb9247d915a81 Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 8 Apr 2011 14:44:00 +0200 Subject: New option: -C, clean thumbnail cache --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 51d97d4..ada0574 100644 --- a/main.c +++ b/main.c @@ -104,6 +104,12 @@ int main(int argc, char **argv) { parse_options(argc, argv); + if (options->clean_cache) { + tns_init(&tns, 0); + tns_clear_cache(&tns); + exit(0); + } + if (!options->filecnt) { print_usage(); exit(1); -- cgit v1.2.3