depricate package name flag

This commit is contained in:
jharshman 2019-01-30 01:37:10 -08:00 committed by Steve Francia
parent b8ad19ad0d
commit 221bae3986

View File

@ -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.