diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-08 02:23:16 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-08 02:23:16 -0500 |
commit | 6d4abd89b2dfcdce0bd59d627a31e92fcc745c94 (patch) | |
tree | 891ce011366d9d6bec6fd9adfa56452715e0b212 /src/main.rs | |
parent | bd7c31233de96d96e16f9c15e22d014514f7a173 (diff) | |
download | lastfm-query-6d4abd89b2dfcdce0bd59d627a31e92fcc745c94.tar.gz lastfm-query-6d4abd89b2dfcdce0bd59d627a31e92fcc745c94.zip |
better options handling
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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), } } |