aboutsummaryrefslogtreecommitdiff
path: root/src/help.c
blob: cdcd37791b6468c00edd4cafaa75e9b2e9687bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/**
 * @file help.c
 * @author Joe Wingbermuehle
 * @date 2004-2006
 *
 * @brief Functions for displaying information about JWM.
 *
 */

#include "jwm.h"
#include "help.h"

/** Display program name, version, and compiled options . */
void DisplayAbout() {
	printf("JWM v%s by Joe Wingbermuehle\n", PACKAGE_VERSION);
	DisplayCompileOptions();
}

/** Display compiled options. */
void DisplayCompileOptions() {

	printf("compiled options: ");

#ifndef DISABLE_CONFIRM
	printf("confirm ");
#endif

#ifdef DEBUG
	printf("debug ");
#endif

#ifdef USE_FRIBIDI
	printf("fribidi ");
#endif

#ifdef USE_ICONS
	printf("icons ");
#endif

#ifdef USE_PNG
	printf("png ");
#endif

#ifdef USE_SHAPE
	printf("shape ");
#endif

#ifdef USE_XFT
	printf("xft ");
#endif

#ifdef USE_XINERAMA
	printf("xinerama ");
#endif

#ifdef USE_XPM
	printf("xpm ");
#endif

#ifdef USE_XRENDER
	printf("xrender ");
#endif

	printf("\nsystem configuration: %s\n", SYSTEM_CONFIG);

}

/** Display all help. */
void DisplayHelp() {
	DisplayUsage();
	printf("  -display X  Set the X display to use\n");
	printf("  -exit       Exit JWM (send _JWM_EXIT to the root)\n");
	printf("  -h          Display this help message\n");
	printf("  -p          Parse the configuration file and exit\n");
	printf("  -restart    Restart JWM (send _JWM_RESTART to the root)\n");
	printf("  -v          Display version information\n");
}

/** Display program usage information. */
void DisplayUsage() {
	DisplayAbout();
	printf("usage: jwm [ options ]\n");
}