From 5636676c98b1b9720870f45696fa444002d9febc Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Mon, 21 Oct 2019 10:47:57 -0700 Subject: [PATCH] put check back --- commands/gist.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/gist.go b/commands/gist.go index 67ed7c52..6027d9dc 100644 --- a/commands/gist.go +++ b/commands/gist.go @@ -147,6 +147,10 @@ func createGist(cmd *Command, args *Args) { func showGist(cmd *Command, args *Args) { args.NoForward() + if args.ParamsSize() < 1 { + utils.Check(cmd.UsageError("you must specify a gist ID")) + } + host, err := github.CurrentConfig().DefaultHostNoPrompt() utils.Check(err) gh := github.NewClient(host.Host) -- GitLab