diff mbox series

[BlueZ,v4,4/9] client: Fix --help hanging if bluetoothd is not running

Message ID 20250513093913.396876-5-hadess@hadess.net
State New
Headers show
Series Fix bluetoothctl --help hanging if daemon isn't running | expand

Commit Message

Bastien Nocera May 13, 2025, 9:38 a.m. UTC
Exit after printing all the main and submenu commands.
---
 client/main.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/client/main.c b/client/main.c
index 9efa92380663..c536a179dc7a 100644
--- a/client/main.c
+++ b/client/main.c
@@ -3410,6 +3410,8 @@  int main(int argc, char *argv[])
 	hci_add_submenu();
 	bt_shell_set_prompt(PROMPT_OFF, NULL);
 
+	bt_shell_handle_non_interactive_help();
+
 	if (agent_option)
 		auto_register_agent = g_strdup(agent_option);
 	else