mirror of
https://github.com/spf13/cobra
synced 2024-11-04 21:07:19 +00:00
depricate package name flag
This commit is contained in:
parent
b8ad19ad0d
commit
221bae3986
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ Example: cobra add server -> resulting in a new cmd/server.go`,
|
|||
func init() {
|
||||
addCmd.Flags().StringVarP(&packageName, "package", "t", "", "target package name (e.g. github.com/spf13/hugo)")
|
||||
addCmd.Flags().StringVarP(&parentName, "parent", "p", "rootCmd", "variable name of parent command for this command")
|
||||
addCmd.Flags().MarkDeprecated("package", "this operation has been removed.")
|
||||
}
|
||||
|
||||
// validateCmdName returns source without any dashes and underscore.
|
||||
|
|
Loading…
Reference in a new issue