summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-09-30 02:33:43 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-09-30 02:33:43 +0200
commita5f36f763cb8f66b1c658057f7af1ee6d7f246b7 (patch)
treeb50456d2b89566764dc208f1b116641cbb9c15d1 /src/options.c
parentca99c34c74999682dc6ce70d7455ba2ff778b1f8 (diff)
Add --index-info option
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index 6f44607..4b29d35 100644
--- a/src/options.c
+++ b/src/options.c
@@ -374,6 +374,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
{"menu-style" , 1, 0, 204},
{"zoom" , 1, 0, 205},
{"no-screen-clip", 0, 0, 206},
+ {"index-info" , 1, 0, 207},
{"caption-path" , 1, 0, 'K'},
{"action1" , 1, 0, 209},
{"action2" , 1, 0, 210},
@@ -427,7 +428,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
break;
case 'I':
opt.index = 1;
- opt.index_info = estrdup("%n \n %S \n %wx%h");
+ opt.index_info = estrdup("%n\n%S\n%wx%h");
opt.index_show_name = 1;
opt.index_show_size = 1;
opt.index_show_dim = 1;
@@ -650,6 +651,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
case 206:
opt.screen_clip = 0;
break;
+ case 207:
+ opt.index_info = estrdup(optarg);
+ break;
case 'K':
opt.caption_path = estrdup(optarg);
break;