From 5bc98bfdf76e9d4964f2667fa94b5c06869b2e40 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 24 Aug 2017 10:57:11 -0700 Subject: [PATCH] send_message: Remove unnecessary API key details. This removes a lot of clutter from this example. This is the send_message part of #1. --- zulip/examples/send-message | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/zulip/examples/send-message b/zulip/examples/send-message index 082a195..f142b5f 100755 --- a/zulip/examples/send-message +++ b/zulip/examples/send-message @@ -26,14 +26,12 @@ import argparse import zulip -usage = """send-message --user= --api-key= [options] +usage = """send-message [options] 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 --user=your-bot@example.com --api-key=a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 user1@example.com user2@example.com - -You can omit --user and --api-key arguments if you have a properly set up ~/.zuliprc +Example: send-message --type=stream commits --subject="my subject" --message="test message" +Example: send-message user1@example.com user2@example.com """ parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage)) parser.add_argument('recipients', nargs='*')