From b77fdd06cb3bf418e7d72c26959dd6933a010c74 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Wed, 25 Jan 2012 00:02:19 +0100
Subject: Do not refer to --help unless it is compiled in (Debian #657171)

---
 ChangeLog     | 2 ++
 src/options.c | 8 ++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b74280e..7ea3cc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@ git HEAD
       <https://github.com/derf/feh/issues/77>
     * Mention URL support in the SYNOPSIS
       <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655431>
+    * Do not refer to --help unless help is compiled in
+      <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657171>
 
 Mon, 02 Jan 2012 11:54:01 +0100  Daniel Friesel <derf@finalrewind.org>
 
diff --git a/src/options.c b/src/options.c
index 8bfe8c1..0ef4a06 100644
--- a/src/options.c
+++ b/src/options.c
@@ -796,8 +796,12 @@ static void show_version(void)
 void show_mini_usage(void)
 {
 	fputs(PACKAGE " - No loadable images specified.\n"
-			"Use " PACKAGE " --help for detailed usage information\n",
-			stderr);
+#ifdef INCLUDE_HELP
+		"See '" PACKAGE " --help' or 'man " PACKAGE "' for detailed usage information\n",
+#else
+		"See 'man " PACKAGE "' for detailed usage information\n",
+#endif
+		stderr);
 	exit(1);
 }
 
-- 
cgit v1.2.3