summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorulteq <ulteq@web.de>2018-01-18 11:07:45 +0100
committerulteq <ulteq@web.de>2018-01-23 19:29:40 +0100
commit7acf83ea6d6f36e418f43a3408632944fbb7bcde (patch)
tree2a129172891e5515dbf4b6f518ed47a417d8b487 /src/options.c
parent886bea1e034c6878f4466a7e427302351281043e (diff)
Add natural sort of (version) numbers
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 c874832..3fcbdef 100644
--- a/src/options.c
+++ b/src/options.c
@@ -412,6 +412,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;
@@ -782,6 +783,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;
}