summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-02-28 17:24:20 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-02-28 17:24:20 +0100
commitac3356c15f2160d1b252ae6afe50a328cebc9ee7 (patch)
tree9c36b944b2f3c8503991e427a1dce16c3a77d185 /src/options.c
parent8eaa39234a54fcdd3c9050a01790b152598af80d (diff)
parent7acf83ea6d6f36e418f43a3408632944fbb7bcde (diff)
Merge branch 'natural-sort' of https://github.com/ulteq/feh into ulteq-natural-sort
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 0ad7c74..3d11482 100644
--- a/src/options.c
+++ b/src/options.c
@@ -415,6 +415,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
{"insecure" , 0, 0, 240},
{"no-recursive" , 0, 0, 241},
{"cache-size" , 1, 0, 243},
+ {"version-sort" , 0, 0, 246},
{0, 0, 0, 0}
};
int optch = 0, cmdx = 0;
@@ -780,6 +781,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
if (opt.cache_size > 2048)
opt.cache_size = 2048;
break;
+ case 246:
+ opt.version_sort = 1;
+ break;
default:
break;
}