Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

Command.arg

Append one public logical argument.

Source and package
Qualified name
libtmux::command::Command::arg
Module
command
Declared in
Command
Package
libtmux
Source
crates/libtmux/src/command.rs
#[must_use = "use the returned command to retain the appended argument"] pub fn arg(mut self, argument: impl Into<OsString>) -> Self

Description#

Public arguments appear in bounded, escaped diagnostic summaries.

Examples#

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

Type to search.

Reference previewOpen reference