summary refs log tree commit diff
path: root/archive.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-30 17:48:47 -0400
committerJune McEnroe <june@causal.agency>2020-04-30 17:48:47 -0400
commit6347c3305092ae574fa7d9b0f444247a509abb3b (patch)
tree0883b908721dc38004d17e778c1c7874f8efab1f /archive.c
parentAdd install, uninstall targets (diff)
downloadbubger-6347c3305092ae574fa7d9b0f444247a509abb3b.tar.gz
bubger-6347c3305092ae574fa7d9b0f444247a509abb3b.zip
Add -S for subscribe link
These base* variables are badly named...
Diffstat (limited to '')
-rw-r--r--archive.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/archive.c b/archive.c
index ca2914f..d6cc74c 100644
--- a/archive.c
+++ b/archive.c
@@ -32,6 +32,7 @@
 const char *baseURL = "";
 const char *baseTitle;
 const char *baseAddress;
+const char *baseSubscribe;
 
 static uint32_t uidRead(const char *path) {
 	FILE *file = fopen(path, "r");
@@ -75,12 +76,13 @@ int main(int argc, char *argv[]) {
 	const char *algo = "REFERENCES";
 	const char *search = "ALL";
 
-	for (int opt; 0 < (opt = getopt(argc, argv, "C:a:h:m:p:qs:t:u:vw:"));) {
+	for (int opt; 0 < (opt = getopt(argc, argv, "C:S:a:h:m:p:qs:t:u:vw:"));) {
 		switch (opt) {
 			break; case 'C': {
 				int error = chdir(optarg);
 				if (error) err(EX_NOINPUT, "%s", optarg);
 			}
+			break; case 'S': baseSubscribe = optarg;
 			break; case 'a': algo = optarg;
 			break; case 'h': concatHead = optarg;
 			break; case 'm': baseAddress = optarg;