zephyr: Use add_default_arguments in sync_public_streams.

This commit is contained in:
Tim Abbott 2017-09-29 16:21:18 -07:00
parent c3a213269f
commit 807afd2032

View file

@ -2,7 +2,7 @@
import sys
import os
import logging
import optparse
import argparse
import time
import json
import subprocess
@ -55,9 +55,8 @@ if __name__ == "__main__":
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)
parser = optparse.OptionParser()
parser.add_option_group(zulip.generate_option_group(parser))
(options, args) = parser.parse_args()
parser = zulip.add_default_arguments(argparse.ArgumentParser())
options = parser.parse_args()
zulip_client = zulip.Client(client="ZulipSyncPublicStreamsBot/0.1")