diff --git a/src/main.rs b/src/main.rs index 7ddcbbe..f4d6493 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,6 +32,11 @@ fn main() -> Result<(), Error> { let mut cmd = Args::command(); let args = Args::parse(); + + // Validate arguments based on mode + if let Err(e) = args.validate() { + cmd.error(ErrorKind::ValueValidation, e).exit(); + } stderrlog::new() .module(module_path!())