20 lines
439 B
Text
20 lines
439 B
Text
|
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
import argparse
|
||
|
|
||
|
usage = """get-stream-topics --stream-id=<stream-id> [options]
|
||
|
|
||
|
Get all the topics for a specific stream.
|
||
|
"""
|
||
|
|
||
|
import zulip
|
||
|
|
||
|
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))
|
||
|
parser.add_argument('--stream-id', required=True)
|
||
|
options = parser.parse_args()
|
||
|
|
||
|
client = zulip.init_from_options(options)
|
||
|
|
||
|
print(client.get_stream_topics(options.stream_id))
|