# command.Command.targeting

- **Module:** command.Command
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/command.rs#L220
- **Page:** https://libtmux.org/reference/rs/command-command-targeting/

```
command.Command.targeting(mut, target: impl Into<OsString>) -> Self
```

Return this command with `-t target` placed after the subcommand.

Placed there rather than appended because tmux stops reading flags at
the first positional: a target after one is not a target at all. It is
taken as text, and the command succeeds having done the wrong thing --
`send-keys -- echo hi -t work` types `echohi-tc` into whichever pane
was current.
