Skip to content

Commit

Permalink
use consistent var declaration format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfurlan committed May 19, 2020
1 parent 1cd6e3f commit e13fc24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/gen-docs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ func main() {

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

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

0 comments on commit e13fc24

Please sign in to comment.