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

View File

@@ -19,15 +19,15 @@ func main() {
app.Version = "Editor: 1.6.1; Desktop: 1.0.4"
app.Flags = []cli.Flag{
cli.StringFlag{
&cli.StringFlag{
Name: "file, f",
Usage: "Allow access to JSON style from web client",
},
cli.BoolFlag{
&cli.BoolFlag{
Name: "watch",
Usage: "Notify web client about JSON style file changes",
},
cli.IntFlag{
&cli.IntFlag{
Name: "port",
Value: 8000,
Usage: "TCP port to listen on",