1 2 3 4 5 6 7 8 9 10 11 12
use clap::{Arg, ArgAction, Command}; pub fn build_cli() -> Command { Command::new("x11-event-monitor").arg( Arg::new("json") .action(ArgAction::SetTrue) .help("Print in JSON Lines format") .short('j') .long("json") .required(false), ) }