Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sdghchj committed May 29, 2020
1 parent f63189d commit d4a9b4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/swag/main.go
Expand Up @@ -19,7 +19,7 @@ const (
parseVendorFlag = "parseVendor"
parseDependencyFlag = "parseDependency"
markdownFilesFlag = "markdownFiles"
parseInternal = "parseInternal"
parseInternal = "parseInternal"
generatedTimeFlag = "generatedTime"
)

Expand Down Expand Up @@ -66,10 +66,10 @@ var initFlags = []cli.Flag{
Value: "",
Usage: "Parse folder containing markdown files to use as description, disabled by default",
},
cli.BoolFlag{
Name: "parseInternal",
Usage: "Parse go files in internal packages, disabled by default",
},
&cli.BoolFlag{
Name: "parseInternal",
Usage: "Parse go files in internal packages, disabled by default",
},
&cli.BoolFlag{
Name: "generatedTime",
Usage: "Generate timestamp at the top of docs.go, true by default",
Expand All @@ -94,7 +94,7 @@ func initAction(c *cli.Context) error {
ParseVendor: c.Bool(parseVendorFlag),
ParseDependency: c.Bool(parseDependencyFlag),
MarkdownFilesDir: c.String(markdownFilesFlag),
ParseInternal: c.Bool(parseInternal),
ParseInternal: c.Bool(parseInternal),
GeneratedTime: c.Bool(generatedTimeFlag),
})
}
Expand Down

0 comments on commit d4a9b4b

Please sign in to comment.