From eee8dac63b858e5302c69de00f549636e64d216c Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 30 Sep 2022 21:17:27 +0200 Subject: [PATCH] Make text argument required for post_comment. --- darwin/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darwin/options.py b/darwin/options.py index af68cc1b7..fb479f055 100644 --- a/darwin/options.py +++ b/darwin/options.py @@ -252,7 +252,7 @@ def __init__(self): help="[Remote] Dataset name: to list all the existing dataset, run 'darwin dataset remote'. ", ) parser_comment.add_argument("file", type=str, help="File to comment") - parser_comment.add_argument("--text", type=str, help="Comment: list of words") + parser_comment.add_argument("--text", required=True, type=str, help="Comment: list of words") parser_comment.add_argument("--x", required=False, type=float, default=1, help="X coordinate for comment box") parser_comment.add_argument("--y", required=False, type=float, default=1, help="Y coordinate for comment box") parser_comment.add_argument(