From 53679da34cd7fe84aaac2a15f936e1450de7c125 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Fri, 22 Nov 2024 17:35:09 +0100 Subject: rewrite cli parsing, allow multiple files and dir as args --- src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 95bf16a..747a8f1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,7 +38,7 @@ const TEXT_FG_COLOR_INDEX: u8 = 250; #[tokio::main] async fn main() -> Result<()> { // Parse CLI arguments - let parsed_args = CLIArgs::new(); + let parsed_args = CLIArgs::parse_args().unwrap(); // Print help if -h/--help flag is passed and exit if parsed_args.helparg { @@ -52,10 +52,6 @@ async fn main() -> Result<()> { std::process::exit(0); } - // if !parsed_args.bibfilearg.is_file() { - // panic!("No \'.bib\' file passed, aborting") - // } - init_error_hooks()?; // Create an application. -- cgit v1.2.3