JWM Source Documentation
help.c
Go to the documentation of this file.
1 
10 #include "jwm.h"
11 #include "help.h"
12 
13 static void DisplayUsage(void);
14 
16 void DisplayAbout(void)
17 {
18  printf("JWM v" PACKAGE_VERSION " by Joe Wingbermuehle\n");
20 }
21 
24 {
25  printf("compiled options: "
26 #ifndef DISABLE_CONFIRM
27  "confirm "
28 #endif
29 #ifdef DEBUG
30  "debug "
31 #endif
32 #ifdef USE_FRIBIDI
33  "fribidi "
34 #endif
35 #ifdef USE_ICONS
36  "icons "
37 #endif
38 #ifdef USE_JPEG
39  "jpeg "
40 #endif
41 #ifdef ENABLE_NLS
42  "nls "
43 #endif
44 #ifdef USE_PNG
45  "png "
46 #endif
47 #ifdef USE_SHAPE
48  "shape "
49 #endif
50 #if defined(USE_CAIRO) && defined(USE_RSVG)
51  "svg "
52 #endif
53 #ifdef USE_XBM
54  "xbm "
55 #endif
56 #ifdef USE_XFT
57  "xft "
58 #endif
59 #ifdef USE_XINERAMA
60  "xinerama "
61 #endif
62 #ifdef USE_XPM
63  "xpm "
64 #endif
65 #ifdef USE_XRENDER
66  "xrender "
67 #endif
68  "\nsystem configuration: " SYSTEM_CONFIG "\n");
69 }
70 
72 void DisplayHelp(void)
73 {
74  DisplayUsage();
75  printf(" -display X Set the X display to use\n"
76  " -exit Exit JWM (send _JWM_EXIT to the root)\n"
77  " -f file Use specified configuration file\n"
78  " -h Display this help message\n"
79  " -p Parse the configuration file and exit\n"
80  " -reload Reload menu (send _JWM_RELOAD to the root)\n"
81  " -restart Restart JWM (send _JWM_RESTART to the root)\n"
82  " -v Display version information\n");
83 }
84 
86 void DisplayUsage(void)
87 {
88  DisplayAbout();
89  printf("usage: jwm [ options ]\n");
90 }
91 

joewing.net / Projects / JWM