Date:2011-06-07 00:42:31 (9 years 2 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
227227static void usage(const char *name)
228228{
229229    fprintf(stderr,
230"usage: %s [-c] [-d driver[:arg]] command|pattern ...\n"
230"usage: %s [-c] [-d driver[:arg]] [-p] command|pattern ...\n\n"
231231" -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"
233234" command is one of:\n"
234235" reg=value set transceiver register\n"
235236" reg:[value[/mask]]\n"
...... 
290291            usage(*argv);
291292        }
292293
294    if (optind == argc)
295        usage(*argv);
296
293297    for (i = optind; i != argc; i++) {
294298        if (*argv[i] == '#')
295299            continue;

Archive Download the corresponding diff file



interactive