Specify that parent's name is a variable for clarity. #514

This commit is contained in:
Tom Elliott 2017-08-14 22:24:12 -04:00 committed by Albert Nigmatzianov
parent b26b538f69
commit cb731b8983

View File

@ -24,7 +24,7 @@ import (
func init() {
addCmd.Flags().StringVarP(&packageName, "package", "t", "", "target package name (e.g. github.com/spf13/hugo)")
addCmd.Flags().StringVarP(&parentName, "parent", "p", "RootCmd", "name of parent command for this command")
addCmd.Flags().StringVarP(&parentName, "parent", "p", "RootCmd", "variable name of parent command for this command")
}
var packageName, parentName string