From 4bf778b1365adccf8cf4dcc1a6a703177d27e9b0 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Thu, 30 Apr 2020 11:41:39 -0700 Subject: [PATCH] require one arg --- command/pr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/pr.go b/command/pr.go index 49e1f3c9a..d6873b4d7 100644 --- a/command/pr.go +++ b/command/pr.go @@ -69,6 +69,7 @@ With '--web', open the pull request in a web browser instead.`, var prCloseCmd = &cobra.Command{ Use: "close [{ | }]", Short: "Close a pull request", + Args: cobra.ExactArgs(1), RunE: prClose, }