aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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)?;