bubble up parsing errors

This commit is contained in:
Pierre Dubouilh
2021-10-17 18:59:56 +02:00
parent 70cbeae0ed
commit 6741f48285
6 changed files with 121 additions and 30 deletions
+9
View File
@@ -1,5 +1,14 @@
use clap::{App, Arg};
#[derive(Debug, thiserror::Error)]
#[allow(clippy::large_enum_variant)]
pub enum Error {
#[error("cant parse")]
CantParse,
#[error("general error")]
UnknownError,
}
pub fn cli() -> App<'static, 'static> {
App::new("ban internets scanner fast 🍶")
.version("v0.0.1")