gin icon indicating copy to clipboard operation
gin copied to clipboard

Incorrect Usage: flag provided but not defined: -appPort

Open MilanSavaliya opened this issue 4 years ago • 3 comments

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?

MilanSavaliya avatar Sep 05 '20 07:09 MilanSavaliya

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

smasinde avatar Oct 16 '20 18:10 smasinde

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

reuben-bel avatar Jan 27 '21 22:01 reuben-bel

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

Emptyless avatar Jun 25 '21 09:06 Emptyless