From 2ccdfd9365d1597c341aaebdabeef4ec8c1c1695 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 30 Sep 2024 23:36:11 +0200 Subject: [PATCH] more cleanup --- src/main.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3e03cabb2..b9f17ad55 100644 --- a/src/main.rs +++ b/src/main.rs @@ -312,7 +312,7 @@ fn get_setup() -> Setup { const ONEVENT_SHORT: &str = "o"; #[cfg(feature = "passthrough-decoder")] const PASSTHROUGH_SHORT: &str = "P"; - const TOKEN_SHORT: &str = "k"; + const PASSWORD: &str = "password"; const EMIT_SINK_EVENTS_SHORT: &str = "Q"; const QUIET_SHORT: &str = "q"; const INITIAL_VOLUME_SHORT: &str = "R"; @@ -501,9 +501,15 @@ fn get_setup() -> Setup { "USERNAME", ) .optopt( - TOKEN_SHORT, - TOKEN, - "Spotify access token to sign in with. Use empty string to obtain token.", + PASSWORD_SHORT, + PASSWORD, + "Password used to sign in with.", + "PASSWORD", + ) + .optopt( + ACCESS_TOKEN_SHORT, + ACCESS_TOKEN, + "Spotify access token to sign in with.", "TOKEN", ) .optopt(