e30b3b094b
Generated by `pyupgrade --py3-plus --keep-percent-format` followed by manual indentation fixes. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
20 lines
364 B
Python
Executable file
20 lines
364 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import argparse
|
|
|
|
import zulip
|
|
|
|
usage = """delete-stream <stream_id>
|
|
|
|
Example: delete-stream 42
|
|
"""
|
|
|
|
|
|
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))
|
|
parser.add_argument('stream_id', type=int)
|
|
options = parser.parse_args()
|
|
|
|
client = zulip.init_from_options(options)
|
|
|
|
print(client.delete_stream(options.stream_id))
|