From 35e715e6576014cf9c491c198db0f6b70b6dd99f Mon Sep 17 00:00:00 2001 From: ERAMOTO Masaya Date: Mon, 23 Oct 2017 17:25:57 +0900 Subject: [PATCH] tools/btmgmt: Fix inconsistency of usages and options Add the missed options to usages and remove the unimplemented option. --- tools/btmgmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index c29c1cbb3..5762b2be2 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -2213,7 +2213,7 @@ static void cmd_find_service(struct mgmt *mgmt, uint16_t index, int argc, return noninteractive_quit(EXIT_FAILURE); } - while ((opt = getopt_long(argc, argv, "+lbu:r:p:h", + while ((opt = getopt_long(argc, argv, "+lbu:r:h", find_service_options, NULL)) != -1) { switch (opt) { case 'l': @@ -2293,7 +2293,7 @@ static void find_rsp(uint8_t status, uint16_t len, const void *param, static void find_usage(void) { - print("Usage: find [-l|-b]>"); + print("Usage: find [-l|-b] [-L]"); } static struct option find_options[] = { @@ -2801,7 +2801,7 @@ static void irks_rsp(uint8_t status, uint16_t len, const void *param, static void irks_usage(void) { - print("Usage: irks [--local]"); + print("Usage: irks [--local ] [--file ]"); } static struct option irks_options[] = { -- 2.47.3