X Tutup
Skip to content

Commit 4a45feb

Browse files
author
Alan Donovan
authored
Merge pull request cli#101 from github/fix-80
Suppress display of usage message after errors
2 parents 5238f24 + 6a52794 commit 4a45feb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/ghcs/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ func main() {
1919
var version = "DEV"
2020

2121
var rootCmd = &cobra.Command{
22-
Use: "ghcs",
22+
Use: "ghcs",
23+
SilenceUsage: true, // don't print usage message after each error (see #80)
2324
Long: `Unofficial CLI tool to manage GitHub Codespaces.
2425
2526
Running commands requires the GITHUB_TOKEN environment variable to be set to a

0 commit comments

Comments
 (0)
X Tutup