libtmux Reference MCP Search
On this page

command.Command.target

View as Markdown

Module
command
Declared in
Command
Package
libtmux
Source
crates/libtmux/src/command.rs
target ( self ) Option<&OsStr>
method [source]
method [source]
target

Return the value of the command's -t flag, when it has one.

Used to name the object in a failure. tmux does not always repeat the target it could not resolve, so this recovers it from the request.

The first -t wins, which is what tmux does: it parses flags before positionals. A positional that happens to read -t can only be reached after tmux has already taken the flag, so the worst case is a mislabelled error rather than a wrong one.

0 declared, 0 inherited

Esc

Type to search.