diff options
| author | lukeflo | 2024-10-08 22:48:53 +0200 |
|---|---|---|
| committer | lukeflo | 2024-10-12 22:41:38 +0200 |
| commit | 2aaee4d89f7d8ee683a0d50f21723d908dec3e46 (patch) | |
| tree | 973beeb3d1ff543971b7bca1aa22df361354cc25 /src/main.rs | |
| parent | e425c7dcdf444de1151ab3f5347e6503cd0452b9 (diff) | |
| download | bibiman-2aaee4d89f7d8ee683a0d50f21723d908dec3e46.tar.gz bibiman-2aaee4d89f7d8ee683a0d50f21723d908dec3e46.zip | |
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
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. ///// +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)?; |
