diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-08-29 19:32:59 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-08-29 19:32:59 +0200 |
commit | 115a74b6c17d4b9dd61a7509d963c4f64e2e25c7 (patch) | |
tree | d788d0852638283c304129735151e41e73b72df9 /src/options.c | |
parent | bcefd10220b7da136ccff57b37d47e7ae7337013 (diff) | |
parent | 3ed38d4b8180f8763c4115ff2a27b0d032530f9e (diff) |
Merge branch 'ulteq-no-cycle'
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c index af0f07d..38d2568 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}, + {"on-last-slide" , 1, 0, 244}, {"conversion-timeout" , 1, 0, 245}, {"version-sort" , 0, 0, 246}, {"offset" , 1, 0, 247}, @@ -742,7 +743,8 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) break; #endif case 224: - opt.cycle_once = 1; + weprintf("--cycle-once is deprecated, please use --on-last-slide=quit instead"); + opt.on_last_slide = ON_LAST_SLIDE_QUIT; break; case 225: opt.xinerama = 0; @@ -785,6 +787,18 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) if (opt.cache_size > 2048) opt.cache_size = 2048; break; + case 244: + if (!strcmp(optarg, "quit")) { + opt.on_last_slide = ON_LAST_SLIDE_QUIT; + } else if (!strcmp(optarg, "hold")) { + opt.on_last_slide = ON_LAST_SLIDE_HOLD; + } else if (!strcmp(optarg, "resume")) { + opt.on_last_slide = ON_LAST_SLIDE_RESUME; + } else { + weprintf("Unrecognized on-last-slide action \"%s\"." + "Supported actions: hold, resume, quit\n", optarg); + } + break; case 245: opt.conversion_timeout = atoi(optarg); break; |