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, 1 insertions, 5 deletions
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.