From bbd7b7d595e41535e7152d3941f63e56e57b5641 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 2 Feb 2011 10:34:14 +0100 Subject: New option: -r, open all images in directories --- options.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'options.c') diff --git a/options.c b/options.c index bb608e5..74daf5b 100644 --- a/options.c +++ b/options.c @@ -29,7 +29,7 @@ options_t _options; const options_t *options = (const options_t*) &_options; void print_usage() { - printf("usage: sxiv [-dFfhpqsvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n"); + printf("usage: sxiv [-dFfhpqrsvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n"); } void print_version() { @@ -52,7 +52,7 @@ void parse_options(int argc, char **argv) { _options.quiet = 0; _options.recursive = 0; - while ((opt = getopt(argc, argv, "dFfg:hpqsvZz:")) != -1) { + while ((opt = getopt(argc, argv, "dFfg:hpqrsvZz:")) != -1) { switch (opt) { case '?': print_usage(); @@ -78,6 +78,9 @@ void parse_options(int argc, char **argv) { case 'q': _options.quiet = 1; break; + case 'r': + _options.recursive = 1; + break; case 's': _options.scalemode = SCALE_FIT; break; -- cgit v1.2.3-54-g00ecf