summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-02 10:34:14 +0100
committerBert <ber.t@gmx.com>2011-02-02 10:34:14 +0100
commitbbd7b7d595e41535e7152d3941f63e56e57b5641 (patch)
tree5fa95c3e2a98df460de79cc9496516b6627b5a04 /options.c
parent2afb989cc415419229d6f6ded02d59ee109ac796 (diff)
downloadnsxiv-bbd7b7d595e41535e7152d3941f63e56e57b5641.tar.zst
New option: -r, open all images in directories
Diffstat (limited to 'options.c')
-rw-r--r--options.c7
1 files changed, 5 insertions, 2 deletions
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;