CommandSummary.argument_count
Return the number of logical arguments after the subcommand.
Source and package
- Qualified name
-
libtmux::command:: Command Summary:: argument _count - Module
- command
- Declared in
CommandSummary- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
-
Examples#
use libtmux::Command;let summary = Command::new("set-option").arg("-g").arg("mouse").summary();assert_eq!(summary.argument_count(), 2);