service: Include brief description for help command itself
patch 2d85c1f72cbe23f45c514c3100ebe57bee0d576b
Author: E. Bosch <presidev@AT@gmail.com>
Date: Tue Mar 8 21:28:02 CET 2022
* service: Include brief description for help command itself
diff -rN -u old-irgramd/service.py new-irgramd/service.py
--- old-irgramd/service.py 2024-10-23 03:29:32.529676221 +0200
+++ new-irgramd/service.py 2024-10-23 03:29:32.529676221 +0200
@@ -34,7 +34,9 @@
start_help = ('*** Telegram Service Help ***',)
end_help = ('*** End of Help ***',)
- if not help_command or help_command == 'help':
+ if help == HELP.brief:
+ help_text = (' help This help',)
+ elif not help_command or help_command == 'help':
help_text = start_help
help_text += \
(
@@ -43,7 +45,6 @@
)
for command in self.commands.values():
handler = command[0]
- if handler == self.handle_command_help: break
help_text += handler(help=HELP.brief)
help_text += \
(