Use -h for hostname, instead of -i
This commit is contained in:
parent
be0736e17d
commit
76d1db5ad2
@ -16,7 +16,7 @@ Then you can run `wfgraphic-cli` with the options below.
|
|||||||
Usage of wfgraphic-cli:
|
Usage of wfgraphic-cli:
|
||||||
-font string
|
-font string
|
||||||
Post font (options: "serif", "sans", "mono") (default "serif")
|
Post font (options: "serif", "sans", "mono") (default "serif")
|
||||||
-i string
|
-h string
|
||||||
WriteFreely instance hostname (e.g. "pencil.writefree.ly")
|
WriteFreely instance hostname (e.g. "pencil.writefree.ly")
|
||||||
-o string
|
-o string
|
||||||
Image output filename (default "out.png")
|
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:
|
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
|
## Examples
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
outputFile = flag.String("o", "out.png", "Image output filename")
|
outputFile = flag.String("o", "out.png", "Image output filename")
|
||||||
font = flag.String("font", "serif", "Post font (options: \"serif\", \"sans\", \"mono\")")
|
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)")
|
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\")")
|
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…
Reference in New Issue
Block a user