Remove incorrect comment about MarkFlagRequired() not doing anything

seems like something's enforcing it and it's not my code
This commit is contained in:
Finn 2018-10-08 18:07:22 -07:00
parent 6e8edc9144
commit c7b17b30f3

View file

@ -50,7 +50,7 @@ func init() {
RootCmd.AddCommand(sendCmd) RootCmd.AddCommand(sendCmd)
sendCmd.Flags().StringVarP(&username, "username", "u", "", "The username to send from (required)") sendCmd.Flags().StringVarP(&username, "username", "u", "", "The username to send from (required)")
sendCmd.MarkFlagRequired("username") // Misleading: cobra doesn't actually do anything to enforce "required" flags sendCmd.MarkFlagRequired("username")
sendCmd.Flags().StringVarP(&toUser, "to", "t", "", "The user to send the message to (cannot be combined with --group)") sendCmd.Flags().StringVarP(&toUser, "to", "t", "", "The user to send the message to (cannot be combined with --group)")