summary refs log tree commit diff
path: root/archive.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-13 15:28:40 -0400
committerJune McEnroe <june@causal.agency>2020-04-13 15:28:40 -0400
commit3882e8c39fdc88231bceb3ed9a5c44b4a8b70f3a (patch)
treed1c0955ffe66e8175d5faecd8f24149b7e357400 /archive.c
parentRename pathMangle to pathSafe (diff)
downloadbubger-3882e8c39fdc88231bceb3ed9a5c44b4a8b70f3a.tar.gz
bubger-3882e8c39fdc88231bceb3ed9a5c44b4a8b70f3a.zip
Add -u option to set base URL
Diffstat (limited to '')
-rw-r--r--archive.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/archive.c b/archive.c
index 69d3c77..d505949 100644
--- a/archive.c
+++ b/archive.c
@@ -65,7 +65,7 @@ int main(int argc, char *argv[]) {
 	const char *title = NULL;
 	const char *headPath = NULL;
 
-	for (int opt; 0 < (opt = getopt(argc, argv, "C:a:h:p:s:t:vw:"));) {
+	for (int opt; 0 < (opt = getopt(argc, argv, "C:a:h:p:s:t:u:vw:"));) {
 		switch (opt) {
 			break; case 'C': {
 				int error = chdir(optarg);
@@ -76,6 +76,7 @@ int main(int argc, char *argv[]) {
 			break; case 'p': port = optarg;
 			break; case 's': search = optarg;
 			break; case 't': title = optarg;
+			break; case 'u': atomBaseURL = optarg;
 			break; case 'v': imapVerbose = true;
 			break; case 'w': passPath = optarg;
 		}