diff options
Diffstat (limited to 'fbset.c')
-rw-r--r-- | fbset.c | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -105,9 +105,9 @@ struct cmdoptions_t { | |||
105 | "-vsync", 1, CMD_VSYNC}, { | 105 | "-vsync", 1, CMD_VSYNC}, { |
106 | "-laced", 1, CMD_LACED}, { | 106 | "-laced", 1, CMD_LACED}, { |
107 | "-double", 1, CMD_DOUBLE}, { | 107 | "-double", 1, CMD_DOUBLE}, { |
108 | "--help", 0, CMD_HELP}, { | 108 | "-help", 0, CMD_HELP}, { |
109 | #ifdef BB_FEATURE_FBSET_FANCY | 109 | #ifdef BB_FEATURE_FBSET_FANCY |
110 | "--help", 0, CMD_HELP}, { | 110 | "-help", 0, CMD_HELP}, { |
111 | "-all", 0, CMD_ALL}, { | 111 | "-all", 0, CMD_ALL}, { |
112 | "-xres", 1, CMD_XRES}, { | 112 | "-xres", 1, CMD_XRES}, { |
113 | "-yres", 1, CMD_YRES}, { | 113 | "-yres", 1, CMD_YRES}, { |
@@ -115,7 +115,7 @@ struct cmdoptions_t { | |||
115 | "-vyres", 1, CMD_VYRES}, { | 115 | "-vyres", 1, CMD_VYRES}, { |
116 | "-depth", 1, CMD_DEPTH}, { | 116 | "-depth", 1, CMD_DEPTH}, { |
117 | "-match", 0, CMD_MATCH}, { | 117 | "-match", 0, CMD_MATCH}, { |
118 | "--geometry", 5, CMD_GEOMETRY}, { | 118 | "-geometry", 5, CMD_GEOMETRY}, { |
119 | "-pixclock", 1, CMD_PIXCLOCK}, { | 119 | "-pixclock", 1, CMD_PIXCLOCK}, { |
120 | "-left", 1, CMD_LEFT}, { | 120 | "-left", 1, CMD_LEFT}, { |
121 | "-right", 1, CMD_RIGHT}, { | 121 | "-right", 1, CMD_RIGHT}, { |
@@ -123,7 +123,7 @@ struct cmdoptions_t { | |||
123 | "-lower", 1, CMD_LOWER}, { | 123 | "-lower", 1, CMD_LOWER}, { |
124 | "-hslen", 1, CMD_HSLEN}, { | 124 | "-hslen", 1, CMD_HSLEN}, { |
125 | "-vslen", 1, CMD_VSLEN}, { | 125 | "-vslen", 1, CMD_VSLEN}, { |
126 | "--timings", 7, CMD_TIMING}, { | 126 | "-timings", 7, CMD_TIMING}, { |
127 | "-csync", 1, CMD_CSYNC}, { | 127 | "-csync", 1, CMD_CSYNC}, { |
128 | "-gsync", 1, CMD_GSYNC}, { | 128 | "-gsync", 1, CMD_GSYNC}, { |
129 | "-extsync", 1, CMD_EXTSYNC}, { | 129 | "-extsync", 1, CMD_EXTSYNC}, { |
@@ -221,17 +221,21 @@ static void showmode(struct fb_var_screeninfo *v) | |||
221 | 221 | ||
222 | static void fbset_usage(void) | 222 | static void fbset_usage(void) |
223 | { | 223 | { |
224 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
224 | int i; | 225 | int i; |
226 | #endif | ||
225 | 227 | ||
226 | #ifndef STANDALONE | 228 | #ifndef STANDALONE |
227 | fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", | 229 | fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", |
228 | BB_VER, BB_BT); | 230 | BB_VER, BB_BT); |
229 | #endif | 231 | #endif |
230 | fprintf(stderr, "Usage: fbset [options] [mode]\n\n"); | 232 | fprintf(stderr, "Usage: fbset [options] [mode]\n"); |
231 | fprintf(stderr, "Show and modify frame buffer device settings\n\n"); | 233 | #ifndef BB_FEATURE_TRIVIAL_HELP |
234 | fprintf(stderr, "\nShows and modifies frame buffer device settings\n\n"); | ||
232 | fprintf(stderr, "The following options are recognized:\n"); | 235 | fprintf(stderr, "The following options are recognized:\n"); |
233 | for (i = 0; g_cmdoptions[i].name; i++) | 236 | for (i = 0; g_cmdoptions[i].name; i++) |
234 | fprintf(stderr, "\t%s\n", g_cmdoptions[i].name); | 237 | fprintf(stderr, "\t%s\n", g_cmdoptions[i].name); |
238 | #endif | ||
235 | exit(-1); | 239 | exit(-1); |
236 | } | 240 | } |
237 | 241 | ||