mirror of
https://github.com/tmux/tmux.git
synced 2025-12-20 22:36:03 +00:00
Fix documentation around optional arguments
This includes:
- Syncing between the usage string in code and in the manpage
- Adding optional arguments that were simply not mentioned (e.g.
shell-command arguments)
- Adding square brackets around arguments that are actually optional
Co-authored-by: Julian Prein <julian@druck.dev>
This commit is contained in:
@@ -40,7 +40,8 @@ const struct cmd_entry cmd_new_window_entry = {
|
||||
|
||||
.args = { "abc:de:F:kn:PSt:", 0, -1, NULL },
|
||||
.usage = "[-abdkPS] [-c start-directory] [-e environment] [-F format] "
|
||||
"[-n window-name] " CMD_TARGET_WINDOW_USAGE " [shell-command]",
|
||||
"[-n window-name] " CMD_TARGET_WINDOW_USAGE
|
||||
" [shell-command [argument ...]]",
|
||||
|
||||
.target = { 't', CMD_FIND_WINDOW, CMD_FIND_WINDOW_INDEX },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user