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:
parent
6e8edc9144
commit
c7b17b30f3
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ func init() {
|
|||
RootCmd.AddCommand(sendCmd)
|
||||
|
||||
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)")
|
||||
|
||||
|
|
Loading…
Reference in a new issue