diff --git a/main.go b/main.go index ef51e0d..7a33573 100644 --- a/main.go +++ b/main.go @@ -67,11 +67,10 @@ func main() { config.LoadConfig() - // Check if current directory is inside the GOPATH, - // if so parse the packages inside it. - if utils.IsInGOPATH(currentpath) && cmd.IfGenerateDocs(c.Name(), args) { + if cmd.IfGenerateDocs(c.Name(), args) { swaggergen.ParsePackagesFromDir(currentpath) } + os.Exit(c.Run(c, args)) return }