From eeb8f1b39d965157ed3ea5f7bffae421cce435b3 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Sat, 5 Oct 2024 22:37:02 +0200 Subject: reordering src structure, cli args struct --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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(()) -- cgit v1.2.3