bots: zulip_bot_output.py: Switch message to being required.
This commit is contained in:
parent
c33ac65ac9
commit
4fff603f44
|
@ -19,8 +19,8 @@ current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
usage = '''
|
usage = '''
|
||||||
zulip-bot-output <bot_name> --message "Send this message to the bot"
|
zulip-bot-output <bot_name> <message>
|
||||||
Example: zulip-bot-output xkcd --message "1"
|
Example: zulip-bot-output xkcd "1"
|
||||||
This tool can be used for testing bots by sending simple messages
|
This tool can be used for testing bots by sending simple messages
|
||||||
and capturing the response.
|
and capturing the response.
|
||||||
(Internally, this program loads bot-related code from the
|
(Internally, this program loads bot-related code from the
|
||||||
|
@ -33,8 +33,7 @@ def parse_args():
|
||||||
action='store',
|
action='store',
|
||||||
help='the name or path an existing bot to run')
|
help='the name or path an existing bot to run')
|
||||||
|
|
||||||
parser.add_argument('--message', '-m',
|
parser.add_argument('message',
|
||||||
required=True,
|
|
||||||
action='store',
|
action='store',
|
||||||
help='the message content to send to the bot')
|
help='the message content to send to the bot')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue