viirya commented on code in PR #293:
URL: 
https://github.com/apache/spark-connect-swift/pull/293#discussion_r2814454846


##########
dev/create_spark_jira.py:
##########
@@ -101,18 +108,19 @@ def main():
     if not JIRA_ACCESS_TOKEN:
         fail("The env-var JIRA_ACCESS_TOKEN is not set.")
 
-    if len(sys.argv) < 2:
-        fail("Usage: %s <JIRA title>" % sys.argv[0])
+    parser = argparse.ArgumentParser(description="Create a Spark JIRA issue.")
+    parser.add_argument("title", help="Title of the JIRA issue")
+    parser.add_argument("-p", "--parent", help="Parent JIRA ID for subtasks")
+    args = parser.parse_args()
 
-    title = sys.argv[1]
-    print("Creating JIRA issue with title: %s" % title)
+    print("Creating JIRA issue with title: %s" % args.title)

Review Comment:
   How about also add the parent Jira id in the the message if any?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to