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

CommandSummary.argument_count

Return the number of logical arguments after the subcommand.

Source and package
Qualified name
libtmux::command::CommandSummary::argument_count
Module
command
Declared in
CommandSummary
Package
libtmux
Source
crates/libtmux/src/command.rs
#[must_use] pub const fn argument_count(&self) -> usize

Examples#

use libtmux::Command;
let summary = Command::new("set-option").arg("-g").arg("mouse").summary();
assert_eq!(summary.argument_count(), 2);
Esc

Type to search.

Reference previewOpen reference