Added username and password to reqired

This commit is contained in:
ComlOnline 2017-11-20 00:59:52 +00:00
parent 80493d8bbe
commit 97c0f06ae0

View file

@ -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")