summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-08 02:23:16 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-08 02:23:16 -0500
commit6d4abd89b2dfcdce0bd59d627a31e92fcc745c94 (patch)
tree891ce011366d9d6bec6fd9adfa56452715e0b212 /src/main.rs
parentbd7c31233de96d96e16f9c15e22d014514f7a173 (diff)
downloadlastfm-query-6d4abd89b2dfcdce0bd59d627a31e92fcc745c94.tar.gz
lastfm-query-6d4abd89b2dfcdce0bd59d627a31e92fcc745c94.zip
better options handling
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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),
}
}