From 1f9b7c0fe09f3c8c6cc7715f462fd39f779d5c3f Mon Sep 17 00:00:00 2001 From: Nikola Ristic Date: Tue, 5 May 2020 16:34:31 +0200 Subject: [PATCH] Disable interactive only if both flags are passed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mislav Marohnić --- command/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/issue.go b/command/issue.go index 67fc592b9..001785ddc 100644 --- a/command/issue.go +++ b/command/issue.go @@ -383,7 +383,7 @@ func issueCreate(cmd *cobra.Command, args []string) error { action := SubmitAction - interactive := !cmd.Flags().Changed("title") && !cmd.Flags().Changed("body") + interactive := !(cmd.Flags().Changed("title") && cmd.Flags().Changed("body")) if interactive { tb, err := titleBodySurvey(cmd, title, body, defaults{}, templateFiles)