From 807afd203280d42207de2531594bd1da16bde0cc Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 29 Sep 2017 16:21:18 -0700 Subject: [PATCH] zephyr: Use add_default_arguments in sync_public_streams. --- zulip/integrations/zephyr/sync-public-streams | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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")