From 76d1db5ad230a20b1be8baf49f081550ed891f75 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 20 Jan 2021 08:56:32 -0500 Subject: [PATCH] Use -h for hostname, instead of -i --- README.md | 4 ++-- cmd/wfgraphic-cli/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a9b0633..6e751bc 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Then you can run `wfgraphic-cli` with the options below. Usage of wfgraphic-cli: -font string Post font (options: "serif", "sans", "mono") (default "serif") - -i string + -h string WriteFreely instance hostname (e.g. "pencil.writefree.ly") -o string Image output filename (default "out.png") @@ -29,7 +29,7 @@ Usage of wfgraphic-cli: The actual content of the graphic is read from `stdin`, which you can either supply when prompted to, or pipe in, for example: ``` -cat quote.txt | ./wfgraphic-cli -i write.as -u blog +cat quote.txt | ./wfgraphic-cli -h write.as -u blog ``` ## Examples diff --git a/cmd/wfgraphic-cli/main.go b/cmd/wfgraphic-cli/main.go index 93d30c4..7687adb 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", "", "WriteFreely instance hostname (e.g. \"pencil.writefree.ly\")") + instance = flag.String("h", "", "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\")") )