From 2b4d1acf52f4fc8f64f7d36be502b38573cb0b91 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 19 Jan 2023 18:05:29 -0500 Subject: [PATCH] Fix some arguments default/required --- mailman_sync.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mailman_sync.py b/mailman_sync.py index 7a52d59..9388468 100755 --- a/mailman_sync.py +++ b/mailman_sync.py @@ -176,10 +176,14 @@ def parse_arguments(): help="Path to Mailman site admin scripts (default %(default)s)", ) argp.add_argument("--api", required=True, help="API endpoint to retrieve JSON from") - argp.add_argument("--list-suffix", help="Suffix for mailing lists") - argp.add_argument("--urlhost", help="Urlhost to use when creating new lists") + argp.add_argument("--list-suffix", help="Suffix for mailing lists", default="") argp.add_argument( - "--admin", help="Admin email address to use when creating new lists" + "--urlhost", help="Urlhost to use when creating new lists", required=True + ) + argp.add_argument( + "--admin", + help="Admin email address to use when creating new lists", + required=True, ) argp.add_argument( "-n",