From c9d5935ee33b732e2914e72bc60598eb239a63d3 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 22 Apr 2020 14:00:08 -0700 Subject: [PATCH] move to use --- command/root.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/command/root.go b/command/root.go index 6f2927a61..4096306b1 100644 --- a/command/root.go +++ b/command/root.go @@ -76,6 +76,7 @@ func (fe FlagError) Unwrap() error { // RootCmd is the entry point of command-line execution var RootCmd = &cobra.Command{ + Use: "gh [flags]", Short: "GitHub CLI", Long: `Work seamlessly with GitHub from the command line.`, @@ -246,9 +247,7 @@ func rootHelpFunc(command *cobra.Command, s []string) { { "", command.Long}, - {"USAGE", ` - # most gh commands need to be run in a directory containing a GitHub repository. - gh [subcommand] [flags]`}, + {"USAGE", command.UsageString()}, {"CORE COMMANDS", strings.Join(coreCommands, "\n")}, {"ADDITIONAL COMMANDS", strings.Join(additionalCommands, "\n")}, {"EXAMPLES", `