From 404f0cd56fc7e7d4c734055d82638046586e2a68 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sat, 2 May 2026 16:43:18 -0400 Subject: [PATCH] Update to recognize positional args --- README.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3aa7821..0d66c05 100644 --- a/README.md +++ b/README.md @@ -167,16 +167,25 @@ Batch subscription example using [google-civic-api.pl](https://git.bikeshopi.dev **Usage:** ```bash -./subscribe-members.sh [list_id] +./test-subscribe-members.sh [list_id] [connector_url] ``` +**Arguments:** +- `csv_file` - Path to CSV file with format: email,first_name,last_name +- `password` - Secret password for the mailman-connector (required) +- `list_id` - Target mailing list (default: members.lists.example.org) +- `connector_url` - URL of the mailman-connector (default: https://mailman-connector.example.com) + **Examples:** ```bash -# Using default list -./subscribe-members.sh league_membership.csv +# Using default list and connector URL +./test-subscribe-members.sh members.csv mysecretpassword -# Using specific list -./subscribe-members.sh league_membership.csv test.lists.example.org +# With specific list +./test-subscribe-members.sh members.csv mysecretpassword test.lists.example.org + +# With specific list and connector URL +./test-subscribe-members.sh members.csv mysecretpassword test.lists.example.org https://connector.example.com ``` **How it works:** @@ -184,10 +193,3 @@ Batch subscription example using [google-civic-api.pl](https://git.bikeshopi.dev 2. Converts output to CSV format: `email,first_name,last_name` 3. Sends batch subscribe request to connector -**Configuration:** -Edit the script to set: -```bash -CONNECTOR_URL="https://mailman-connector.example.com" -CONNECTOR_PASSWORD="your_secret_password" -LIST_ID="test.lists.example.org" # Default list -