Use the CMD_*_USAGE defines consistently, from Thomas Adam.

pull/1/head
Nicholas Marriott 2012-12-09 23:17:35 +00:00
parent 3fa4f691e3
commit 3a0016a78a
8 changed files with 11 additions and 9 deletions

View File

@ -32,7 +32,8 @@ enum cmd_retval cmd_capture_pane_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_capture_pane_entry = { const struct cmd_entry cmd_capture_pane_entry = {
"capture-pane", "capturep", "capture-pane", "capturep",
"b:E:S:t:", 0, 0, "b:E:S:t:", 0, 0,
"[-b buffer-index] [-E end-line] [-S start-line] [-t target-pane]", "[-b buffer-index] [-E end-line] [-S start-line] "
CMD_TARGET_PANE_USAGE,
0, 0,
NULL, NULL,
NULL, NULL,

View File

@ -32,7 +32,8 @@ enum cmd_retval cmd_display_message_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_display_message_entry = { const struct cmd_entry cmd_display_message_entry = {
"display-message", "display", "display-message", "display",
"c:pt:F:", 0, 1, "c:pt:F:", 0, 1,
"[-p] [-c target-client] [-t target-pane] [-F format] [message]", "[-p] [-c target-client] [-F format] " CMD_TARGET_PANE_USAGE
" [message]",
0, 0,
NULL, NULL,
NULL, NULL,

View File

@ -38,7 +38,7 @@ void cmd_list_panes_window(struct cmd *,
const struct cmd_entry cmd_list_panes_entry = { const struct cmd_entry cmd_list_panes_entry = {
"list-panes", "lsp", "list-panes", "lsp",
"asF:t:", 0, 0, "asF:t:", 0, 0,
"[-as] [-F format] [-t target]", "[-as] [-F format] " CMD_TARGET_WINDOW_USAGE,
0, 0,
NULL, NULL,
NULL, NULL,

View File

@ -36,8 +36,8 @@ enum cmd_retval cmd_new_session_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_new_session_entry = { const struct cmd_entry cmd_new_session_entry = {
"new-session", "new", "new-session", "new",
"dn:s:t:x:y:", 0, 1, "dn:s:t:x:y:", 0, 1,
"[-d] [-n window-name] [-s session-name] [-t target-session] " "[-d] [-n window-name] [-s session-name] " CMD_TARGET_SESSION_USAGE
"[-x width] [-y height] [command]", " [-x width] [-y height] [command]",
CMD_STARTSERVER|CMD_CANTNEST|CMD_SENDENVIRON, CMD_STARTSERVER|CMD_CANTNEST|CMD_SENDENVIRON,
NULL, NULL,
cmd_new_session_check, cmd_new_session_check,

View File

@ -32,7 +32,7 @@ const struct cmd_entry cmd_new_window_entry = {
"new-window", "neww", "new-window", "neww",
"ac:dF:kn:Pt:", 0, 1, "ac:dF:kn:Pt:", 0, 1,
"[-adkP] [-c start-directory] [-F format] [-n window-name] " "[-adkP] [-c start-directory] [-F format] [-n window-name] "
"[-t target-window] [command]", CMD_TARGET_WINDOW_USAGE " [command]",
0, 0,
NULL, NULL,
NULL, NULL,

View File

@ -36,7 +36,7 @@ void cmd_paste_buffer_filter(struct window_pane *,
const struct cmd_entry cmd_paste_buffer_entry = { const struct cmd_entry cmd_paste_buffer_entry = {
"paste-buffer", "pasteb", "paste-buffer", "pasteb",
"db:prs:t:", 0, 0, "db:prs:t:", 0, 0,
"[-dpr] [-s separator] [-b buffer-index] [-t target-pane]", "[-dpr] [-s separator] [-b buffer-index] " CMD_TARGET_PANE_USAGE,
0, 0,
NULL, NULL,
NULL, NULL,

View File

@ -32,7 +32,7 @@ enum cmd_retval cmd_send_keys_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_send_keys_entry = { const struct cmd_entry cmd_send_keys_entry = {
"send-keys", "send", "send-keys", "send",
"lRt:", 0, -1, "lRt:", 0, -1,
"[-lR] [-t target-pane] key ...", "[-lR] " CMD_TARGET_PANE_USAGE " key ...",
0, 0,
NULL, NULL,
NULL, NULL,

View File

@ -35,7 +35,7 @@ const struct cmd_entry cmd_split_window_entry = {
"split-window", "splitw", "split-window", "splitw",
"c:dF:l:hp:Pt:v", 0, 1, "c:dF:l:hp:Pt:v", 0, 1,
"[-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] " "[-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] "
"[-t target-pane] [command]", CMD_TARGET_PANE_USAGE " [command]",
0, 0,
cmd_split_window_key_binding, cmd_split_window_key_binding,
NULL, NULL,