diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-08 01:52:31 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-08 01:52:31 -0500 |
commit | bd7c31233de96d96e16f9c15e22d014514f7a173 (patch) | |
tree | 10d1cc4bc6a88475e38e5b137928b3f74e6fdf35 /src/cli.rs | |
parent | de41e542cb74d192ffd48600569b7d9fdc9e6cdd (diff) | |
download | lastfm-query-bd7c31233de96d96e16f9c15e22d014514f7a173.tar.gz lastfm-query-bd7c31233de96d96e16f9c15e22d014514f7a173.zip |
stop passing the api key on the command line
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -7,7 +7,6 @@ pub enum Command { pub struct Options { pub command: Command, pub username: Option<String>, - pub api_key: Option<String>, } pub fn get_options() -> failure::Fallible<Options> { @@ -17,20 +16,9 @@ pub fn get_options() -> failure::Fallible<Options> { .about("Updates the local copy of track data from last.fm") .arg( clap::Arg::with_name("username") - .short("u") - .long("username") - .value_name("USERNAME") .required(true) .help("last.fm username to fetch tracks for") ) - .arg( - clap::Arg::with_name("api-key") - .short("k") - .long("api-key") - .value_name("API_KEY") - .required(true) - .help("last.fm api key") - ) ) .get_matches(); @@ -43,6 +31,5 @@ pub fn get_options() -> failure::Fallible<Options> { Ok(Options { command: command, username: sub_matches.value_of("username").map(|s| s.to_string()), - api_key: sub_matches.value_of("api-key").map(|s| s.to_string()), }) } |