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