mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Specify that parent's name is a variable for clarity. #514
This commit is contained in:
parent
b26b538f69
commit
cb731b8983
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue