From 6d4abd89b2dfcdce0bd59d627a31e92fcc745c94 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 8 Nov 2018 02:23:16 -0500 Subject: better options handling --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d7d80fd..4638adf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,9 +19,9 @@ mod paths; mod db; fn run() -> failure::Fallible<()> { - let opts = cli::get_options()?; - match opts.command { - cli::Command::Sync => cmd::sync::run(&opts), + let command = cli::get_options()?; + match command { + cli::Command::Sync { username } => cmd::sync::run(&username), } } -- cgit v1.2.3-54-g00ecf