IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2011-06-07 00:42:31 (12 years 9 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 8f20b1fb8755e45297a98ca94f9736734d1b4f4c |
Message: | atrf-gpio: cleaned up usage - atrf-gpio.c (usage): added newline after synopsis - atrf-gpio.c (usage): description of option -p was missing - atrf-gpio.c (main): invocation without patterns/commands is now an error |
Files: |
tools/atrf-gpio/atrf-gpio.c (2 diffs) |
Change Details
tools/atrf-gpio/atrf-gpio.c | ||
---|---|---|
227 | 227 | static void usage(const char *name) |
228 | 228 | { |
229 | 229 | fprintf(stderr, |
230 | "usage: %s [-c] [-d driver[:arg]] command|pattern ...\n" | |
230 | "usage: %s [-c] [-d driver[:arg]] [-p] command|pattern ...\n\n" | |
231 | 231 | " -c cycle, waiting for Pass/Fail/Quit input\n" |
232 | " -d driver[:arg] use the specified driver (default: %s)\n\n" | |
232 | " -d driver[:arg] use the specified driver (default: %s)\n" | |
233 | " -p stay in P_ON state instead of entering TRX_OFF\n\n" | |
233 | 234 | " command is one of:\n" |
234 | 235 | " reg=value set transceiver register\n" |
235 | 236 | " reg:[value[/mask]]\n" |
... | ... | |
290 | 291 | usage(*argv); |
291 | 292 | } |
292 | 293 | |
294 | if (optind == argc) | |
295 | usage(*argv); | |
296 | ||
293 | 297 | for (i = optind; i != argc; i++) { |
294 | 298 | if (*argv[i] == '#') |
295 | 299 | continue; |