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