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 2b8fd43edd
commit 25f5d240da
2 changed files with 2 additions and 2 deletions

View File

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

View File

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