Skip to content

Commit

Permalink
Use the CMD_*_USAGE defines consistently, from Thomas Adam.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Dec 9, 2012
1 parent 3fa4f69 commit 3a0016a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion cmd-capture-pane.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ enum cmd_retval cmd_capture_pane_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_capture_pane_entry = {
"capture-pane", "capturep",
"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,
NULL,
NULL,
Expand Down
3 changes: 2 additions & 1 deletion cmd-display-message.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ enum cmd_retval cmd_display_message_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_display_message_entry = {
"display-message", "display",
"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,
NULL,
NULL,
Expand Down
2 changes: 1 addition & 1 deletion cmd-list-panes.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void cmd_list_panes_window(struct cmd *,
const struct cmd_entry cmd_list_panes_entry = {
"list-panes", "lsp",
"asF:t:", 0, 0,
"[-as] [-F format] [-t target]",
"[-as] [-F format] " CMD_TARGET_WINDOW_USAGE,
0,
NULL,
NULL,
Expand Down
4 changes: 2 additions & 2 deletions cmd-new-session.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ enum cmd_retval cmd_new_session_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_new_session_entry = {
"new-session", "new",
"dn:s:t:x:y:", 0, 1,
"[-d] [-n window-name] [-s session-name] [-t target-session] "
"[-x width] [-y height] [command]",
"[-d] [-n window-name] [-s session-name] " CMD_TARGET_SESSION_USAGE
" [-x width] [-y height] [command]",
CMD_STARTSERVER|CMD_CANTNEST|CMD_SENDENVIRON,
NULL,
cmd_new_session_check,
Expand Down
2 changes: 1 addition & 1 deletion cmd-new-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const struct cmd_entry cmd_new_window_entry = {
"new-window", "neww",
"ac:dF:kn:Pt:", 0, 1,
"[-adkP] [-c start-directory] [-F format] [-n window-name] "
"[-t target-window] [command]",
CMD_TARGET_WINDOW_USAGE " [command]",
0,
NULL,
NULL,
Expand Down
2 changes: 1 addition & 1 deletion cmd-paste-buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void cmd_paste_buffer_filter(struct window_pane *,
const struct cmd_entry cmd_paste_buffer_entry = {
"paste-buffer", "pasteb",
"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,
NULL,
NULL,
Expand Down
2 changes: 1 addition & 1 deletion cmd-send-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ enum cmd_retval cmd_send_keys_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_send_keys_entry = {
"send-keys", "send",
"lRt:", 0, -1,
"[-lR] [-t target-pane] key ...",
"[-lR] " CMD_TARGET_PANE_USAGE " key ...",
0,
NULL,
NULL,
Expand Down
2 changes: 1 addition & 1 deletion cmd-split-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const struct cmd_entry cmd_split_window_entry = {
"split-window", "splitw",
"c:dF:l:hp:Pt:v", 0, 1,
"[-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] "
"[-t target-pane] [command]",
CMD_TARGET_PANE_USAGE " [command]",
0,
cmd_split_window_key_binding,
NULL,
Expand Down

0 comments on commit 3a0016a

Please sign in to comment.