summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>2017-10-23 17:25:57 +0900
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-10-26 16:47:38 +0300
commit35e715e6576014cf9c491c198db0f6b70b6dd99f (patch)
treecbe5fee1a97d9638d47c8f7983af3b539cce776d /tools
parentd0b30c2f806ee871f3113fd6ad2dedd737925ad5 (diff)
downloadbluez-35e715e6576014cf9c491c198db0f6b70b6dd99f.tar.gz
tools/btmgmt: Fix inconsistency of usages and options
Add the missed options to usages and remove the unimplemented option.
Diffstat (limited to 'tools')
-rw-r--r--tools/btmgmt.c6
1 files 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 <index>] [--file <file path>]");
}
static struct option irks_options[] = {