zephyr: Use add_default_arguments in sync_public_streams.
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")
