Browse Source

Use -h for hostname, instead of -i

main
Matt Baer 3 years ago
parent
commit
76d1db5ad2
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      README.md
  2. +1
    -1
      cmd/wfgraphic-cli/main.go

+ 2
- 2
README.md View File

@@ -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


+ 1
- 1
cmd/wfgraphic-cli/main.go View File

@@ -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\")")
)


Loading…
Cancel
Save