You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go run swagger.go generate spec -h
Usage:
swagger [OPTIONS] generate spec [spec-OPTIONS]
generate a swagger spec document from a go application
Application Options:
-q, --quiet silence logs
--log-output=LOG-FILE redirect logs to file
Help Options:
-h, --help Show this help message
[spec command options]
-w, --work-dir= the base path to use (default: .)
-t, --tags= build tags
-m, --scan-models includes models that were annotated with 'swagger:model'
--compact when present, doesn't prettify the json
-o, --output= the file to write to
-i, --input= the file to use as input
-c, --include= include packages matching pattern
-x, --exclude= exclude packages matching pattern
--include-tag= include routes having specified tags (can be specified many times)
--exclude-tag= exclude routes having specified tags (can be specified many times)
Steps to reproduce
$ go get -u github.com/go-swagger/go-swagger/cmd/swagger
$ swagger generate spec -b ./api/v1/ -o ./spec/v1/api.json
unknown flag `b'
Environment
swagger version: master
go version: 1.12.5
OS: linux
The text was updated successfully, but these errors were encountered:
Problem statement
Swagger generate spec no longer works
Steps to reproduce
Environment
swagger version: master
go version: 1.12.5
OS: linux
The text was updated successfully, but these errors were encountered: