Fix argument parsing for Twitter bots.

Even though we support a command-line option of --user=,
it gets stored in a field called 'email'.

(imported from commit f2956524517a93187ed182caf8e2d85ccbc1a0f4)
This commit is contained in:
Waseem Daher 2013-08-08 17:11:07 -04:00
parent 50cdc6853d
commit c44e6d80d2
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ except ConfigParser.NoOptionError:
user_id = options.twitter_id user_id = options.twitter_id
client = zulip.Client( client = zulip.Client(
email=options.user, email=options.email,
api_key=options.api_key, api_key=options.api_key,
site=options.site, site=options.site,
verbose=True) verbose=True)

View file

@ -119,7 +119,7 @@ Please double-check and try again."
sys.exit() sys.exit()
client = zulip.Client( client = zulip.Client(
email=opts.user, email=opts.email,
api_key=opts.api_key, api_key=opts.api_key,
site=opts.site, site=opts.site,
verbose=True) verbose=True)