diff options
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | README | 1 | ||||
| -rw-r--r-- | config.mk | 5 | ||||
| -rw-r--r-- | src/options.c | 4 | 
4 files changed, 13 insertions, 0 deletions
| @@ -10,6 +10,9 @@ git HEAD        <https://github.com/derf/feh/pull/20>      * Show certain warnings in the image window as well as on the commandline        <http://github.com/derf/feh/issues/43> +    * Since the manual is way better structured and more detailed than the +      --help output, it now simply refers to the manual. To include the old +      help text, build feh with 'help=1'  Sat, 23 Apr 2011 22:00:27 +0200  Daniel Friesel <derf@finalrewind.org> @@ -36,6 +36,7 @@ Available flags are:   * curl     (default 1) - use libcurl to view http:// and similar images   * debug    (default 0) - debug build, enables --debug + * help     (default 0) - include help text (refers to the manpage otherwise)   * xinerama (default 1) - Support Xinerama multiscreen setups  So, by default libcurl and Xinerama are enabled, while debug is disabled. @@ -19,6 +19,7 @@ CFLAGS += -Wall -Wextra -pedantic  curl ?= 1  debug ?= 0 +help ?= 0  xinerama ?= 1  ifeq (${curl},1) @@ -36,6 +37,10 @@ else  	MAN_DEBUG =  endif +ifeq (${help},1) +	CFLAGS += -DINCLUDE_HELP +endif +  ifeq (${xinerama},1)  	CFLAGS += -DHAVE_LIBXINERAMA  	LDLIBS += -lXinerama diff --git a/src/options.c b/src/options.c index 61aee64..b947908 100644 --- a/src/options.c +++ b/src/options.c @@ -882,7 +882,11 @@ void show_mini_usage(void)  static void show_usage(void)  {  	fputs( +#ifdef INCLUDE_HELP  #include "help.inc" +#else +	"See 'man " PACKAGE "'\n" +#endif  	, stdout);  	exit(0);  } | 
