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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swag v1.6.6 flag provided but not defined #711

Closed
easonlin404 opened this issue May 24, 2020 · 1 comment · Fixed by #713
Closed

swag v1.6.6 flag provided but not defined #711

easonlin404 opened this issue May 24, 2020 · 1 comment · Fixed by #713
Labels

Comments

@easonlin404
Copy link
Member

github.com/swaggo/swag v1.6.6", but short command options almost undefined, such as -g:
swag init -g cmd/main.go

Incorrect Usage: flag provided but not defined: -g

NAME:
swag init - Create docs.go

USAGE:
swag init [command options] [arguments...]


OPTIONS:
   --generalInfo value       Go file path in which 'swagger general API Info' is written (default: "main.go")
   --dir value               Directory you want to parse (default: "./")
   --exclude value           exclude directories and files when searching, comma separated
   --propertyStrategy value  Property Naming Strategy like snakecase,camelcase,pascalcase (default: "camelcase")
   --output value            Output directory for all the generated files(swagger.json, swagger.yaml and doc.go) (default: "./docs")
   --parseVendor             Parse go files in 'vendor' folder, disabled by default (default: false)
   --parseDependency         Parse go files in outside dependency folder, disabled by default (default: false)
   --markdownFiles value     Parse folder containing markdown files to use as description, disabled by default
   --generatedTime           Generate timestamp at the top of docs.go, true by default (default: false)
   --help, -h                show help (default: false)

2020/05/21 09:54:52 flag provided but not defined: -g
@easonlin404
Copy link
Member Author

as mentioned #705 (comment)

@easonlin404 easonlin404 changed the title flag provided but not defined swag v1.6.6 flag provided but not defined May 24, 2020
This was referenced May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant