From 4fff603f441116789345288a90d915ed3459300d Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Mon, 2 Oct 2017 12:08:56 -0700 Subject: [PATCH] bots: zulip_bot_output.py: Switch message to being required. --- zulip_bots/zulip_bots/zulip_bot_output.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zulip_bots/zulip_bots/zulip_bot_output.py b/zulip_bots/zulip_bots/zulip_bot_output.py index b1fc762..9fc1b2c 100644 --- a/zulip_bots/zulip_bots/zulip_bot_output.py +++ b/zulip_bots/zulip_bots/zulip_bot_output.py @@ -19,8 +19,8 @@ current_dir = os.path.dirname(os.path.abspath(__file__)) def parse_args(): usage = ''' - zulip-bot-output --message "Send this message to the bot" - Example: zulip-bot-output xkcd --message "1" + zulip-bot-output + Example: zulip-bot-output xkcd "1" This tool can be used for testing bots by sending simple messages and capturing the response. (Internally, this program loads bot-related code from the @@ -33,8 +33,7 @@ def parse_args(): action='store', help='the name or path an existing bot to run') - parser.add_argument('--message', '-m', - required=True, + parser.add_argument('message', action='store', help='the message content to send to the bot')