Copy the code to infer the option type to show-options and document it.

This commit is contained in:
nicm
2019-04-18 12:22:07 +00:00
parent 3f189945d8
commit 5b9211d827
2 changed files with 99 additions and 48 deletions

17
tmux.1
View File

@ -2488,9 +2488,17 @@ command),
a server option with
.Fl s ,
otherwise a session option.
If the option is not a user option,
.Fl w
and
.Fl s
are unnecessary -
.Nm
will infer the type from the option name.
If
.Fl g
is given, the global session or window option is set.
.Pp
.Fl F
expands formats in the option value.
The
@ -3384,6 +3392,15 @@ the server options with
.Fl s ,
otherwise the session options for
.Ar target session .
If
.Ar option
is given and is not a user option,
.Fl w
and
.Fl s
are unnecessary -
.Nm
will infer the type from the option name.
Global session or window options are listed if
.Fl g
is used.