aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-02-22 11:48:26 -0700
committerTom Tromey <tom@tromey.com>2020-02-22 12:57:25 -0700
commit283be8bfa4c19c60f81abbbb43e41b6ccfdff4a9 (patch)
tree4e60faf23177f6a139412620150aee3b6eb6ce24 /gdb/tui/tui.c
parentca793b969c39158aa5fb10508a13d2696bf9c6d2 (diff)
downloadgdb-283be8bfa4c19c60f81abbbb43e41b6ccfdff4a9.zip
gdb-283be8bfa4c19c60f81abbbb43e41b6ccfdff4a9.tar.gz
gdb-283be8bfa4c19c60f81abbbb43e41b6ccfdff4a9.tar.bz2
Add "usage" text to all TUI command help
This adds "usage" text to the help for all all the TUI commands. In some cases the usage is borderline, but I tend to think being complete is preferable. 2020-02-22 Tom Tromey <tom@tromey.com> * tui/tui-win.c (_initialize_tui_win): Add usage text. * tui/tui-stack.c (_initialize_tui_stack): Add usage text. * tui/tui-regs.c (_initialize_tui_regs): Add usage text. * tui/tui.c (_initialize_tui): Add usage text. Change-Id: I727f7a7cfc03efa248ef98f30a18be393819e30b
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r--gdb/tui/tui.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 77d7c90..ac435d1 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -562,9 +562,11 @@ _initialize_tui ()
tuicmd = tui_get_cmd_list ();
add_cmd ("enable", class_tui, tui_enable_command,
- _("Enable TUI display mode."),
+ _("Enable TUI display mode.\n\
+Usage: tui enable"),
tuicmd);
add_cmd ("disable", class_tui, tui_disable_command,
- _("Disable TUI display mode."),
+ _("Disable TUI display mode.\n\
+Usage: tui disable"),
tuicmd);
}