swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.68k stars 1.2k forks source link

flag provided but not defined: -parseFuncBody #1884

Closed yarex007 closed 1 month ago

yarex007 commented 1 month ago

Describe the bug swag init --parseFuncBody gives error flag provided but not defined: -parseFuncBody

To Reproduce execute swag init --parseFuncBody

Expected behavior Should execute according to help

Your swag version 1.16.3

Your go version 1.23.0

Desktop (please complete the following information): win 11

bsnuggs1 commented 1 month ago

@yarex007 It seems like this logic was merged in June, but the last release was back in Feb. Likely this will become available in the next version.

You could potentially grab the changes by forcing an install from master, but you may encounter other problems since it has not been released yet,

go install github.com/swaggo/swag/cmd/swag@master