# target.TmuxArg.format

- **Module:** target.TmuxArg
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/target.rs#L809
- **Page:** https://libtmux.org/en/rs/latest/reference/target-tmuxarg-format/

```
target.TmuxArg.format(template: impl Into<OsString>) -> Self
```

Send `template` for tmux to expand as a format.

Only for a template the program itself wrote. A template built from an
argument, a request field, or a configuration file hands whoever wrote
it a shell.
