From cb171409c5fa18507396e988c1505f018db6a0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Mon, 14 May 2018 21:07:02 +0200 Subject: [PATCH] api: Fix edit-message example. The message ID necessarily has to be an integer, and if no casting is made it was being considered a string, causing problems when running the example. --- zulip/zulip/examples/edit-message | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip/zulip/examples/edit-message b/zulip/zulip/examples/edit-message index 85b8ffa..00003f3 100755 --- a/zulip/zulip/examples/edit-message +++ b/zulip/zulip/examples/edit-message @@ -36,7 +36,7 @@ Specify your Zulip API credentials and server in a ~/.zuliprc file or using the import zulip parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage)) -parser.add_argument('--message-id', default="") +parser.add_argument('--message-id', type=int) parser.add_argument('--subject', default="") parser.add_argument('--content', default="") options = parser.parse_args()