use clap::{Arg, App};
pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
app
.arg(Arg::with_name("files-with-matches")
.long("files-with-matches")
.short("l")
.takes_value(false)
.required(false)
.multiple(false)
.help("List files with matches"))
.arg(Arg::with_name("count")
.long("count")
.short("c")
.takes_value(false)
.required(false)
.multiple(false)
.help("Count matches"))
.arg(Arg::with_name("pattern")
.index(1)
.takes_value(false)
.required(true)
.multiple(false)
.value_name("PATTERN")
.help("Pattern to search for. Regex is supported, multiple patterns are not."))
}