printf("Options:\n"
"\t -p, --path agent-path - set D-Bus object path for agent\n"
"\t -d, --discoverable - switch default adapter into discoverable\n"
- "\t\tmode whie waiting for pairing request\n"
+ "\t\tmode while waiting for pairing request\n"
"\t -P, --pair address - initiate pairing with specified address\n"
"\t -r, --remove address - remove pairing with specified device and exit\n");
}
exit(0);
case 'V':
printf("btpasskey " VERSION " Copyright (c) 2007-2008, Victor Wagner\n");
+ exit(0);
default:
fprintf(stderr,"Invalid option -%c. Use %s --help\n",
opt,argv[0]);