send_message: Remove unnecessary API key details.

This removes a lot of clutter from this example.

This is the send_message part of #1.
This commit is contained in:
Tim Abbott 2017-08-24 10:57:11 -07:00
parent 5eaac7bfba
commit 5bc98bfdf7

View file

@ -26,14 +26,12 @@ import argparse
import zulip import zulip
usage = """send-message --user=<bot's email address> --api-key=<bot's api key> [options] <recipients> usage = """send-message [options] <recipients>
Sends a test message to the specified recipients. Sends a test message to the specified recipients.
Example: send-message --user=your-bot@example.com --api-key=a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 --type=stream commits --subject="my subject" --message="test message" Example: send-message --type=stream commits --subject="my subject" --message="test message"
Example: send-message --user=your-bot@example.com --api-key=a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 user1@example.com user2@example.com Example: send-message user1@example.com user2@example.com
You can omit --user and --api-key arguments if you have a properly set up ~/.zuliprc
""" """
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage)) parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))
parser.add_argument('recipients', nargs='*') parser.add_argument('recipients', nargs='*')