From 9244e91e1b31362b9cf37449c4d9f65de8b743a5 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 20 Jan 2021 08:42:23 -0500 Subject: [PATCH] Improve log and flag help message --- cmd/wfgraphic-cli/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/wfgraphic-cli/main.go b/cmd/wfgraphic-cli/main.go index c66812a..a06d239 100644 --- a/cmd/wfgraphic-cli/main.go +++ b/cmd/wfgraphic-cli/main.go @@ -25,7 +25,7 @@ import ( var ( outputFile = flag.String("o", "out.png", "Image output filename") font = flag.String("font", "serif", "Post font (options: \"serif\", \"sans\", \"mono\")") - instance = flag.String("i", "write.as", "WriteFreely instance hostname (e.g. pencil.writefree.ly)") + instance = flag.String("i", "write.as", "WriteFreely instance hostname (e.g. \"pencil.writefree.ly\")") author = flag.String("u", "", "WriteFreely author username (for multi-user instances)") size = flag.String("size", "1024", "Image size, either a single number for a square (e.g. \"900\") or a combined width and height (e.g. \"1080x1920\")") ) @@ -36,7 +36,7 @@ func main() { // Validate input if !textpic.IsValidFont(*font) { - log.Info("Invalid font given. Options: \"serif\", \"sans\", \"mono\"") + log.Info("Invalid --font given. Options: \"serif\", \"sans\", \"mono\"") os.Exit(1) } // Parse image dimensions and validate