From 221bae39865086cc5d0cfbd0c0c4d9853552a9d5 Mon Sep 17 00:00:00 2001 From: jharshman Date: Wed, 30 Jan 2019 01:37:10 -0800 Subject: [PATCH] depricate package name flag --- cobra/cmd/add.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cobra/cmd/add.go b/cobra/cmd/add.go index 599fc604..4fb46329 100644 --- a/cobra/cmd/add.go +++ b/cobra/cmd/add.go @@ -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.