Skip to content

Commit e13fc24

Browse files
committed
use consistent var declaration format
1 parent 1cd6e3f commit e13fc24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/gen-docs/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ func main() {
1414

1515
var flagError pflag.ErrorHandling
1616
docCmd := pflag.NewFlagSet("", flagError)
17-
var manPage = docCmd.BoolP("man-page", "", false, "Generate manual pages")
18-
var website = docCmd.BoolP("website", "", false, "Generate website pages")
19-
var dir = docCmd.StringP("doc-path", "", "", "Path directory where you want generate doc files")
20-
var help = docCmd.BoolP("help", "h", false, "Help about any command")
17+
manPage := docCmd.BoolP("man-page", "", false, "Generate manual pages")
18+
website := docCmd.BoolP("website", "", false, "Generate website pages")
19+
dir := docCmd.StringP("doc-path", "", "", "Path directory where you want generate doc files")
20+
help := docCmd.BoolP("help", "h", false, "Help about any command")
2121

2222
if err := docCmd.Parse(os.Args); err != nil {
2323
os.Exit(1)

0 commit comments

Comments
 (0)