Diff between 7cf75e0ca6070979173fd926bed8e2581ff5ae3d and 847337155ee7ff8564b9482a8ffa5025c5f361e9
Changed Files
| File | Additions | Deletions | Status |
| src/shared/shell.c | +6 | -2 | modified |
Full Patch
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 73aedaf..e22d664 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -527,8 +527,12 @@ static char **menu_completion(const struct bt_shell_menu_entry *entry,
if (strcmp(entry->cmd, input_cmd))
continue;
- if (!entry->gen)
- continue;
+ if (!entry->gen) {
+ if (text[0] == '\0')
+ bt_shell_printf("Usage: %s %s\n", entry->cmd,
+ entry->arg ? entry->arg : "");
+ break;
+ }
rl_completion_display_matches_hook = entry->disp;
matches = rl_completion_matches(text, entry->gen);