From 735c88bc6840b9205759e2cc3b0c757039a9c99d Mon Sep 17 00:00:00 2001 From: Kremilly Date: Thu, 12 Dec 2024 17:08:05 -0300 Subject: [PATCH] refactor: inline Cli parsing in init method for improved clarity --- src/dump_sync.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dump_sync.rs b/src/dump_sync.rs index b602672..5a4c17c 100644 --- a/src/dump_sync.rs +++ b/src/dump_sync.rs @@ -205,9 +205,7 @@ impl DumpSync { } pub async fn init(&self) -> Result<(), Box> { - let cli = Cli::parse(); - - match cli.command { + match Cli::parse().command { Commands::Init => { self.initialize().await?; },