X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=btpasskey%2Fbtpasskey.c;fp=btpasskey%2Fbtpasskey.c;h=f918f12715a356f99acd55954e8d31ebfd7d3a97;hb=d1d66f72ac7ad5b99fdabb78c7387febf7739413;hp=452839d4493f36c8b16453a9d3fc53b2741a83a2;hpb=e6efc7f4fc4ccfbe6307425e097f2b73ed49057b;p=oss%2Fbtcli.git diff --git a/btpasskey/btpasskey.c b/btpasskey/btpasskey.c index 452839d..f918f12 100644 --- a/btpasskey/btpasskey.c +++ b/btpasskey/btpasskey.c @@ -379,7 +379,7 @@ static void usage(const char *progname) 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"); } @@ -427,6 +427,7 @@ int main(int argc, char *argv[]) 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]);