codegangsta / gin

Live reload utility for Go web servers
MIT License
4.23k stars 317 forks source link

Incorrect Usage: flag provided but not defined: -appPort #165

Open MilanSavaliya opened 4 years ago

MilanSavaliya commented 4 years ago

OS: Windows 10 Professional Edition Command: gin.exe run --appPort 8081 .\main.go Output:

Incorrect Usage: flag provided but not defined: -appPort

NAME:
   gin.exe run - Run the gin proxy in the current working directory

USAGE:
   gin.exe run [arguments...]

Is there something I am missing?

smasinde commented 3 years ago

This had me stuck for a while... you have to put your arguments before "run".. e.g. gin --port $PORT run

reuben-bel commented 3 years ago

I'm also having the same exact problem adding flags.

Emptyless commented 3 years ago

gin is built on "gopkg.in/urfave/cli.v1" which can display a help page using gin help for anyone wondering how to find out how to supply arguments