mirror of https://github.com/zulip/zulip.git
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:
parent
2b8fd43edd
commit
25f5d240da
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue