diff --git a/zulip/integrations/zephyr/sync-public-streams b/zulip/integrations/zephyr/sync-public-streams index 26441db..26fad9b 100755 --- a/zulip/integrations/zephyr/sync-public-streams +++ b/zulip/integrations/zephyr/sync-public-streams @@ -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")