fixed the error cannot use cli.StringFlag literal ...

This commit is contained in:
Takayuki Miyauchi
2020-02-21 07:24:00 +09:00
parent 5371b0f9fb
commit 4a3825fa89
+3 -3
View File
@@ -19,15 +19,15 @@ func main() {
app.Version = "Editor: 1.6.1; Desktop: 1.0.4" app.Version = "Editor: 1.6.1; Desktop: 1.0.4"
app.Flags = []cli.Flag{ app.Flags = []cli.Flag{
cli.StringFlag{ &cli.StringFlag{
Name: "file, f", Name: "file, f",
Usage: "Allow access to JSON style from web client", Usage: "Allow access to JSON style from web client",
}, },
cli.BoolFlag{ &cli.BoolFlag{
Name: "watch", Name: "watch",
Usage: "Notify web client about JSON style file changes", Usage: "Notify web client about JSON style file changes",
}, },
cli.IntFlag{ &cli.IntFlag{
Name: "port", Name: "port",
Value: 8000, Value: 8000,
Usage: "TCP port to listen on", Usage: "TCP port to listen on",