I try this:
projCmd.Flags().StringVarP(&flag, "type", "t", flag, "help")
But, how to implement multiple options with cobra like this:
mycli new -t one -n two
I try this:
projCmd.Flags().StringVarP(&flag, "type", "t", flag, "help")
But, how to implement multiple options with cobra like this:
mycli new -t one -n two
Copyright © 2021 Jogjafile Inc.
Add a second line with the next option you want to add. You are not limited to use one.
Eg: