use consistent var declaration format
This commit is contained in:
parent
1cd6e3f9d3
commit
e13fc2465f
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue