From c7b17b30f3a394ff6b84960efd4494080b3708bf Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 8 Oct 2018 18:07:22 -0700 Subject: [PATCH] Remove incorrect comment about MarkFlagRequired() not doing anything seems like something's enforcing it and it's not my code --- cmd/signald-cli/cmd/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/signald-cli/cmd/send.go b/cmd/signald-cli/cmd/send.go index 2c09af9..4cbbda8 100644 --- a/cmd/signald-cli/cmd/send.go +++ b/cmd/signald-cli/cmd/send.go @@ -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)")