diff options
| author | lukeflo | 2024-12-16 13:46:24 +0100 |
|---|---|---|
| committer | lukeflo | 2024-12-23 21:03:19 +0100 |
| commit | bf93bbee1b59c9804a01a7476e12264bbbcf5f40 (patch) | |
| tree | e8b1454a9c85e6932b443a34a4a18a02b71bfccc /src/main.rs | |
| parent | a6fca1fcf164142d84d09242b9d95a1da0b2d2d9 (diff) | |
| download | bibiman-bf93bbee1b59c9804a01a7476e12264bbbcf5f40.tar.gz bibiman-bf93bbee1b59c9804a01a7476e12264bbbcf5f40.zip | |
rewrite add-entry via DOI workflow
+ split some functions to fit with different popups
+ select if append to file (and to which) or create new file
+ error handling if resolving doi ist not possible
+ error handling for wront doi patterns
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index b1160e2..78c5075 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ pub mod tui; #[tokio::main] async fn main() -> Result<()> { // Parse CLI arguments - let parsed_args = CLIArgs::parse_args().unwrap(); + let mut parsed_args = CLIArgs::parse_args().unwrap(); // Print help if -h/--help flag is passed and exit if parsed_args.helparg { @@ -48,6 +48,6 @@ async fn main() -> Result<()> { // Create an application. let mut app = App::new(&parsed_args)?; - app.run(&parsed_args).await?; + app.run(&mut parsed_args).await?; Ok(()) } |
