pub fn cli_display_array<K: Display, V: Display>(rows: &IndexMap<K, V>)Expand description
Displays a two-column array with proper spacing and word wrapping.
Formats and displays key-value pairs in two columns with automatic text wrapping. This function is primarily used by the help system to display parameters and flags, but can be used for any two-column data display.
§Arguments
rows- AnIndexMapwhere keys are displayed in the left column and values in the right
§Example
use falcon_cli::{cli_display_array, indexmap};
use indexmap::IndexMap;
let mut items = indexmap! {
"--verbose" => "Enable verbose output with detailed logging",
"--output" => "Specify the output file path",
"--help" => "Display this help message",
};
cli_display_array(&items);