From 97c0f06ae05631aaece642e5bc287cd90ac18805 Mon Sep 17 00:00:00 2001 From: ComlOnline Date: Mon, 20 Nov 2017 00:59:52 +0000 Subject: [PATCH] Added username and password to reqired --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c2850cdf..30495fd5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,8 +95,8 @@ fn setup(args: &[String]) -> Setup { .optopt("", "onstart", "Run PROGRAM when playback is about to begin.", "PROGRAM") .optopt("", "onstop", "Run PROGRAM when playback has ended.", "PROGRAM") .optflag("v", "verbose", "Enable verbose output") - .optopt("u", "username", "Username to sign in with", "USERNAME") - .optopt("p", "password", "Password", "PASSWORD") + .reqopt("u", "username", "Username to sign in with", "USERNAME") + .reqopt("p", "password", "Password", "PASSWORD") .optflag("", "disable-discovery", "Disable discovery mode") .optopt("", "backend", "Audio backend to use. Use '?' to list options", "BACKEND") .optopt("", "device", "Audio device to use. Use '?' to list options", "DEVICE")