Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 flag.Parse not working when using Prefork on Fiber #469

Closed
sujit-baniya opened this issue Jun 15, 2020 · 1 comment
Closed

馃悰 flag.Parse not working when using Prefork on Fiber #469

sujit-baniya opened this issue Jun 15, 2020 · 1 comment

Comments

@sujit-baniya
Copy link
Contributor

Fiber version
1.11.x
Issue description
flag.Parse not working when using Prefork on Fiber
Code snippet

This piece of code is throwing error:

port := flag.Int("port", 8080, "Port number to serve app")
    flag.Parse()

    App = fiber.New(&fiber.Settings{
        ErrorHandler:              nil,
        Prefork:                   true,
        DisableStartupMessage:     true,
        Templates:                 handlebars.New("./resources/views", "html"),
    })

    err := App.Listen(*port)
    if err != nil {
        panic(err)
    }

Error:

main: error: unknown short flag '-c', try --help
@Fenny Fenny added this to To do in Development via automation Jun 15, 2020
ReneWerner87 pushed a commit to ReneWerner87/fiber that referenced this issue Jun 15, 2020
Fenny added a commit that referenced this issue Jun 15, 2020
馃悰 flag.Parse not working when using Prefork on Fiber #469
@Fenny Fenny moved this from To do to Review in progress in Development Jun 15, 2020
@Fenny
Copy link
Member

Fenny commented Jun 16, 2020

@itsursujit this should be fixed, you can try the alpha version v1.12.0-alpha
go get github.com/gofiber/fiber@v1.12.0-alpha

@Fenny Fenny moved this from Review in progress to Done in Development Jun 16, 2020
@Fenny Fenny closed this as completed Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development
  
Done
Development

No branches or pull requests

2 participants