Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
prod name is mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Apr 19, 2020
1 parent d426b90 commit 24c0851
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/products/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ var AttributesCmd = &cobra.Command{
var attrName string

func init() {

AttributesCmd.PersistentFlags().StringVarP(&name, "name", "n",
"", "API Product name")

_ = AttributesCmd.MarkPersistentFlagRequired("name")

AttributesCmd.AddCommand(DelAttrCmd)
AttributesCmd.AddCommand(ListAttrCmd)
AttributesCmd.AddCommand(GetAttrCmd)
Expand Down

0 comments on commit 24c0851

Please sign in to comment.