diff options
| author | lukeflo | 2024-10-05 22:37:02 +0200 |
|---|---|---|
| committer | lukeflo | 2024-10-05 22:37:02 +0200 |
| commit | eeb8f1b39d965157ed3ea5f7bffae421cce435b3 (patch) | |
| tree | 89838d867f2ceb6f436e4a051054b6609c6f230b /src/main.rs | |
| parent | 6717d6a9087180754eda66f89b348ce62b313e1e (diff) | |
| download | bibiman-eeb8f1b39d965157ed3ea5f7bffae421cce435b3.tar.gz bibiman-eeb8f1b39d965157ed3ea5f7bffae421cce435b3.zip | |
reordering src structure, cli args struct
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 5a7c538..9ff24c8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ pub mod frontend; #[tokio::main] async fn main() -> Result<()> { // Parse CLI arguments - let parsed_args = CLIArgs::parse_cli_args(); + let parsed_args = CLIArgs::new(); // Print help if -h/--help flag is passed and exit if parsed_args.helparg { @@ -40,7 +40,7 @@ async fn main() -> Result<()> { } // Create an application. - let mut app = App::new()?; + let mut app = App::new(parsed_args)?; app.run().await?; Ok(()) |
