From 9a93e53bdb0bd25af56218d02efddc489d562db4 Mon Sep 17 00:00:00 2001 From: Gabriel Garrido Date: Sat, 11 May 2024 19:34:57 +0200 Subject: [PATCH] More README fixes --- README.md | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9420b62..fc7ee25 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ You can clone this repo and run `go build main.go` in the repository's directory ``` Usage of mastodon-markdown-archive: -dist string - Path to directory where files will be written, defaults ./posts + Path to directory where files will be written (default "./posts") -exclude-reblogs Whether or not to exclude reblogs -exclude-replies @@ -36,7 +36,7 @@ Usage of mastodon-markdown-archive: -since-id string Fetch posts greater than this id -template string - Template to use for post rendering, defaults to templates/post.tmpl + Template to use for post rendering, if passed -user string URL of User's Mastodon account whose toots will be fetched ``` diff --git a/main.go b/main.go index 4498c4c..dda55fa 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ func main() { minId := flag.String("min-id", "", "Fetch posts immediately newer than this id") persistFirst := flag.String("persist-first", "", "Location to persist the post id of the first post returned") persistLast := flag.String("persist-last", "", "Location to persist the post id of the last post returned") - templateFile := flag.String("template", "", "Template to use for post rendering, defaults to templates/post.tmpl") + templateFile := flag.String("template", "", "Template to use for post rendering, if passed") flag.Parse()