Skip to content

Commit

Permalink
Do not include help text by default
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Apr 30, 2011
1 parent 753fc6e commit 858fefb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>

Expand Down
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CFLAGS += -Wall -Wextra -pedantic

curl ?= 1
debug ?= 0
help ?= 0
xinerama ?= 1

ifeq (${curl},1)
Expand All @@ -36,6 +37,10 @@ else
MAN_DEBUG =
endif

ifeq (${help},1)
CFLAGS += -DINCLUDE_HELP
endif

ifeq (${xinerama},1)
CFLAGS += -DHAVE_LIBXINERAMA
LDLIBS += -lXinerama
Expand Down
4 changes: 4 additions & 0 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 858fefb

Please sign in to comment.