summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
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;