Skip to content

Commit

Permalink
debugger: synchronize help info with the actual commands
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed Nov 13, 2024
1 parent f9c0eee commit 4fabccd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/debugger/debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ static gboolean
_cmd_help(Debugger *self, gint argc, gchar *argv[])
{
printf("syslog-ng interactive console, the following commands are available\n\n"
" help, h, or ? Display this help\n"
" info Display information about the current execution state\n"
" continue or c Continue until the next breakpoint\n"
" trace Display timing information as the message traverses the config\n"
" help, h, ? Display this help\n"
" info, i Display information about the current execution state\n"
" continue, c Continue until the next breakpoint\n"
" display Set the displayed message template\n"
" trace, t Display timing information as the message traverses the config\n"
" print, p Print the current log message\n"
" drop, d Drop the current message\n"
" quit, q Tell syslog-ng to exit\n"
Expand Down Expand Up @@ -260,9 +261,11 @@ struct
{ "p", _cmd_print, .requires_breakpoint_site = TRUE },
{ "display", _cmd_display },
{ "drop", _cmd_drop, .requires_breakpoint_site = TRUE },
{ "d", _cmd_drop, .requires_breakpoint_site = TRUE },
{ "quit", _cmd_quit },
{ "q", _cmd_quit },
{ "trace", _cmd_trace, .requires_breakpoint_site = TRUE },
{ "t", _cmd_trace, .requires_breakpoint_site = TRUE },
{ "info", _cmd_info, .requires_breakpoint_site = TRUE },
{ "i", _cmd_info, .requires_breakpoint_site = TRUE },
{ NULL, NULL }
Expand Down

0 comments on commit 4fabccd

Please sign in to comment.