From 27cce8e3ca8df74890757a17394935856c4e2049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 16 Jun 2020 16:50:34 +0200 Subject: [PATCH] Apply the no-args handler to `issue/pr status` commands --- command/issue.go | 1 + command/pr.go | 1 + 2 files changed, 2 insertions(+) diff --git a/command/issue.go b/command/issue.go index bcab6538e..372ad8bd1 100644 --- a/command/issue.go +++ b/command/issue.go @@ -84,6 +84,7 @@ var issueListCmd = &cobra.Command{ var issueStatusCmd = &cobra.Command{ Use: "status", Short: "Show status of relevant issues", + Args: cmdutil.NoArgsQuoteReminder, RunE: issueStatus, } var issueViewCmd = &cobra.Command{ diff --git a/command/pr.go b/command/pr.go index abd0f2ffc..18150d4eb 100644 --- a/command/pr.go +++ b/command/pr.go @@ -77,6 +77,7 @@ var prListCmd = &cobra.Command{ var prStatusCmd = &cobra.Command{ Use: "status", Short: "Show status of relevant pull requests", + Args: cmdutil.NoArgsQuoteReminder, RunE: prStatus, } var prViewCmd = &cobra.Command{