mirror of
https://github.com/pldubouilh/blockfast.git
synced 2026-08-30 13:57:03 -04:00
bubble up parsing errors
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user