Skip to main content

width_flag_eq

Function width_flag_eq 

Source
pub fn width_flag_eq() -> WidthFlag
Available on crate features print and process only.
Expand description

Create a --width=WIDTH flag that can be added to a command, based on the current width of the terminal

ยงExample

use cu::pre::*;

cu::which("ls")?
  .command()
  .add(cu::width_flag_eq());
   // ... more config