jahschwa / sibyl

a python chatbot with a focus on XBMC
GNU General Public License v3.0
7 stars 6 forks source link

client3.py fix password as cli arg #79

Closed jahschwa closed 4 years ago

jahschwa commented 4 years ago

Need to handle 3 cases:

  1. -p isn't used, args.password = None
  2. -p is used without a value, args.password = ''
  3. -p PASSWORD is used, args.password = 'PASSWORD'

Current code does not allow for 3; the value is ignored and a prompt is still generated.