From 2aaee4d89f7d8ee683a0d50f21723d908dec3e46 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Tue, 8 Oct 2024 22:48:53 +0200 Subject: open URLs, DOIs and PDFs + Implement opening mechanism for URLs, DOIs and PDFs + Adding logic to reset selected item after editing to same entry as before --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 9ff24c8..74e1252 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,6 +15,8 @@ // along with this program. If not, see . ///// +use core::panic; + use backend::cliargs::{self, CLIArgs}; use color_eyre::eyre::Result; use frontend::app::App; @@ -39,6 +41,10 @@ async fn main() -> Result<()> { std::process::exit(0); } + if !parsed_args.bibfilearg.is_file() { + panic!("No \'.bib\' file passed, aborting") + } + // Create an application. let mut app = App::new(parsed_args)?; -- cgit v1.2.3