From 6a527941bf8c6098cf7763ae695b690024fccca2 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Mon, 30 Aug 2021 18:09:52 -0400 Subject: [PATCH] suppress display of usage message after errors --- cmd/ghcs/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/ghcs/main.go b/cmd/ghcs/main.go index bc9bc2c6b..2f1515ac0 100644 --- a/cmd/ghcs/main.go +++ b/cmd/ghcs/main.go @@ -19,7 +19,8 @@ func main() { var version = "DEV" var rootCmd = &cobra.Command{ - Use: "ghcs", + Use: "ghcs", + SilenceUsage: true, // don't print usage message after each error (see #80) Long: `Unofficial CLI tool to manage GitHub Codespaces. Running commands requires the GITHUB_TOKEN environment variable to be set to a