summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-12 16:36:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-12 16:36:20 +0200
commitfb698401b68a797a0a3e9373dd68c45164848a92 (patch)
treefa4543a1e056518861c164591ac318749155ddd6 /src/options.c
parente6dd09e65e22cc13692e09b0018960e878b965c7 (diff)
parent1413ec25f44075de07e7e64a0d8d3bd6fa989966 (diff)
Merge branch 'swillner-master'
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index 37fad88..2a5aae8 100644
--- a/src/options.c
+++ b/src/options.c
@@ -25,7 +25,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <strings.h>
-
#include "feh.h"
#include "filelist.h"
#include "options.h"
@@ -425,6 +424,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
{"conversion-timeout" , 1, 0, 245},
{"version-sort" , 0, 0, 246},
{"offset" , 1, 0, 247},
+#ifdef HAVE_INOTIFY
+ {"auto-reload" , 0, 0, 248},
+#endif
{0, 0, 0, 0}
};
int optch = 0, cmdx = 0;
@@ -810,6 +812,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
opt.offset_flags = XParseGeometry(optarg, &opt.offset_x,
&opt.offset_y, (unsigned int *)&discard, (unsigned int *)&discard);
break;
+#ifdef HAVE_INOTIFY
+ case 248:
+ opt.auto_reload = 1;
+ break;
+#endif
default:
break;
}
@@ -897,6 +904,10 @@ static void show_version(void)
"exif "
#endif
+#ifdef HAVE_INOTIFY
+ "inotify "
+#endif
+
#ifdef INCLUDE_HELP
"help "
#endif