summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/options.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/options.c b/src/options.c
index 120541a..804b485 100644
--- a/src/options.c
+++ b/src/options.c
@@ -530,6 +530,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
"sort by filename", optarg);
opt.sort = SORT_FILENAME;
}
+ if (opt.randomize) {
+ weprintf("commandline contains --randomize and --sort. "
+ "--randomize has been unset");
+ opt.randomize = 0;
+ }
break;
case 'T':
theme = estrdup(optarg);
@@ -644,6 +649,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
break;
case 'z':
opt.randomize = 1;
+ if (opt.sort != SORT_NONE) {
+ weprintf("commandline contains --sort and --randomize. "
+ "--sort has been unset");
+ opt.sort = SORT_NONE;
+ }
break;
case '|':
opt.start_list_at = estrdup(optarg);
@@ -796,12 +806,6 @@ static void check_options(void)
eprintf("You cannot combine --list with other modes");
}
- if (opt.sort && opt.randomize) {
- weprintf("You cant sort AND randomize the filelist...\n"
- "randomize mode has been unset\n");
- opt.randomize = 0;
- }
-
if (opt.loadables && opt.unloadables) {
eprintf("You cannot combine --loadable with --unloadable");
}