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?; },