# command.Command.arg

- **Module:** command.Command
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/command.rs#L151
- **Page:** https://libtmux.org/en/rs/latest/reference/command-command-arg/

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

Append one public logical argument.

Public arguments appear in bounded, escaped diagnostic summaries.

## Example

```rust
use libtmux::Command;

let command = Command::new("display-message").arg("hello");
assert_eq!(command.summary().public_argument_count(), 1);
```
