From a54561ce5066193e0823456e83c8613770779319 Mon Sep 17 00:00:00 2001 From: John Wilkie Date: Fri, 24 May 2024 14:57:16 +0100 Subject: [PATCH 1/2] Made text a required argument when posting comments through CLI --- darwin/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darwin/options.py b/darwin/options.py index 1411a8385..a44621a34 100644 --- a/darwin/options.py +++ b/darwin/options.py @@ -473,7 +473,7 @@ def cpu_default_types(input: Any) -> Optional[int]: # type: ignore 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", type=str, help="Comment: list of words") parser_comment.add_argument( "--x", required=False, From 9f1003e0cf748b09ea1053ed01cc161f9e83186f Mon Sep 17 00:00:00 2001 From: John Wilkie Date: Wed, 29 May 2024 15:29:01 +0100 Subject: [PATCH 2/2] Made text a required argument for comment --- darwin/options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/darwin/options.py b/darwin/options.py index a44621a34..db837bb7f 100644 --- a/darwin/options.py +++ b/darwin/options.py @@ -473,7 +473,9 @@ def cpu_default_types(input: Any) -> Optional[int]: # type: ignore 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", type=str, help="Comment: list of words", required=True + ) parser_comment.add_argument( "--x", required=False,