Skip to contentSkip to conversation

mesh: meshctl: Make composition-get argument optional

PATCH Applied [email protected] 2 participants 2 messages Dec 19, 2017 – Dec 20, 2017 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesh: meshctl: Make composition-get argument optional

From: Steve Brown <[email protected]>

It can't be both optional and required.

[config: Target = 0100]# composition-get 0
Unable to parse optional command arguments

---
 mesh/config-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mesh/config-client.c +1 -1
index fc6b3dc5d..f280441cc 100644
@@ -997,7 +997,7 @@ static const struct bt_shell_menu cfg_menu = {
 	.entries = {
 	{"target",		"<unicast>",		cmd_set_node,
 						"Set target node to configure"},
-	{"composition-get",	"[<page_num>]",		cmd_get_composition,
+	{"composition-get",	"[page_num]",		cmd_get_composition,
 						"Get Composition Data"},
 	{"netkey-add",		"<net_idx>",		cmd_add_net_key,
 						"Add network key"},
Signature · 1 line
2.14.1
#1 lore raw

Hi Steve,

Quoted 7 lines · On Tue, Dec 19, 2017, [email protected] wrote:

It can't be both optional and required.

[config: Target = 0100]# composition-get 0
Unable to parse optional command arguments

---
 mesh/config-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied. Thanks.

Johan