diff --git a/imag-bookmark/src/ui.rs b/imag-bookmark/src/ui.rs index 701cdbba..6c49ba72 100644 --- a/imag-bookmark/src/ui.rs +++ b/imag-bookmark/src/ui.rs @@ -1,6 +1,7 @@ use clap::{Arg, App, SubCommand}; use libimagentrytag::ui::tag_add_arg; +use libimagutil::cli_validators::*; pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { app @@ -22,6 +23,7 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .required(true) .multiple(true) .value_name("URL") + .validator(is_url) .help("Add this URL, multiple possible")) .arg(tag_add_arg()) ) @@ -44,6 +46,7 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .required(true) .multiple(true) .value_name("URL") + .validator(is_url) .help("Remove these urls, regex supported")) )