//! command line interface
usecrate::style::StyleBundle;useregex::Regex;pubusestructopt::StructOpt;/// A minimal stdin/out filter that highlight regex-matched substrings that use colors with round-robin fashion.
#[derive(StructOpt, Debug)]#[structopt(name ="corrupt")]pubstructOpt{#[structopt(short, long, default_value ="[Fg(Red)]")]pubstyle:Vec<StyleBundle>,
/// Regexps that are stylized.
#[structopt(name ="REGEX",parse(try_from_str))]pubregs:Vec<Regex>,
/// how many bytes to read before attempting to flush
#[structopt(short, long, default_value ="512")]pubflush_thd:usize,
}