summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index 89f5e71..4c0ad5d 100644
--- a/src/options.c
+++ b/src/options.c
@@ -301,7 +301,11 @@ static void feh_getopt_theme(int argc, char **argv)
static void feh_parse_option_array(int argc, char **argv, int finalrun)
{
static char stropts[] =
- "a:A:b:B:cC:dD:e:E:f:Fg:GhH:iIj:J:kK:lL:mM:nNo:O:pPqrR:sS:tT:uUvVwW:xXy:YzZ"
+#ifdef HAVE_LIBEXIF
+ "a:A:b:B:cC:dD:e:E:f:Fg:GhH:iIj:J:kK:lL:mM:nNo:O:pPQqrR:sS:tT:uUvVwW:xXy:YzZ"
+#else
+ "a:A:b:B:cC:dD:e:E:f:Fg:GhH:iIj:J:kK:lL:mM:nNo:O:pPqrR:sS:tT:uUvVwW:xXy:YzZ"
+#endif
".@:^:~:):|:+:";
/* (*name, has_arg, *flag, val) See: struct option in getopts.h */
@@ -329,6 +333,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
{"auto-zoom" , 0, 0, 'Z'},
{"ignore-aspect" , 0, 0, 'X'},
{"draw-filename" , 0, 0, 'd'},
+#ifdef HAVE_LIBEXIF
+ {"draw-exif" , 0, 0, 'Q'},
+#endif
{"preload" , 0, 0, 'p'},
{"reverse" , 0, 0, 'n'},
{"thumbnails" , 0, 0, 't'},
@@ -476,6 +483,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
case 'd':
opt.draw_filename = 1;
break;
+#ifdef HAVE_LIBEXIF
+ case 'Q':
+ opt.draw_exif = 1;
+ break;
+#endif
case 'F':
opt.full_screen = 1;
break;