mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-26 06:50:37 +02:00
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
This commit is contained in:
parent
533dc58824
commit
8f20b1fb87
@ -227,9 +227,10 @@ static void pass_fail(void)
|
||||
static void usage(const char *name)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"usage: %s [-c] [-d driver[:arg]] command|pattern ...\n"
|
||||
"usage: %s [-c] [-d driver[:arg]] [-p] command|pattern ...\n\n"
|
||||
" -c cycle, waiting for Pass/Fail/Quit input\n"
|
||||
" -d driver[:arg] use the specified driver (default: %s)\n\n"
|
||||
" -d driver[:arg] use the specified driver (default: %s)\n"
|
||||
" -p stay in P_ON state instead of entering TRX_OFF\n\n"
|
||||
" command is one of:\n"
|
||||
" reg=value set transceiver register\n"
|
||||
" reg:[value[/mask]]\n"
|
||||
@ -290,6 +291,9 @@ int main(int argc, char *const *argv)
|
||||
usage(*argv);
|
||||
}
|
||||
|
||||
if (optind == argc)
|
||||
usage(*argv);
|
||||
|
||||
for (i = optind; i != argc; i++) {
|
||||
if (*argv[i] == '#')
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user