From 08f5c329deff2bb871084fa5486de854041b1b21 Mon Sep 17 00:00:00 2001 From: Bruno Meneguele Date: Tue, 8 Sep 2020 17:48:24 -0300 Subject: [PATCH] issue,mr: remove markdown flag from parent command The flag "--no-markdown","-M" was being shown in both 'lab mr' and 'lab issue' command as a possible flag, but it had no effect whatsoever in any commands other than in the 'show' subcommands, which had their own implementation of this very same flag. With that, remove it from the the parent commands to avoid confusion on its usage. Signed-off-by: Bruno Meneguele --- cmd/issue.go | 1 - cmd/mr.go | 1 - 2 files changed, 2 deletions(-) diff --git a/cmd/issue.go b/cmd/issue.go index 515c31d8..115d3dda 100644 --- a/cmd/issue.go +++ b/cmd/issue.go @@ -37,6 +37,5 @@ func init() { issueCmd.Flags().BoolP("list", "l", false, "List issues on a remote") issueCmd.Flags().BoolP("browse", "b", false, "View issue in a browser") issueCmd.Flags().StringP("close", "d", "", "Close issue on remote") - issueCmd.Flags().BoolP("no-markdown", "M", false, "Don't use markdown renderer to print the issue description") RootCmd.AddCommand(issueCmd) } diff --git a/cmd/mr.go b/cmd/mr.go index b3339e37..4c372b69 100644 --- a/cmd/mr.go +++ b/cmd/mr.go @@ -38,6 +38,5 @@ func init() { mrCmd.Flags().BoolP("list", "l", false, "List merge requests on a remote") mrCmd.Flags().BoolP("browse", "b", false, "View merge request in a browser") mrCmd.Flags().StringP("close", "d", "", "Close merge request on remote") - mrCmd.Flags().BoolP("no-markdown", "M", false, "Don't use markdown renderer to print the issue description") RootCmd.AddCommand(mrCmd) }