From b5299ef5d73596b66b06f701379ea188f01ee3fe Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 22 Apr 2020 13:46:51 -0700 Subject: [PATCH 1/3] pointy brackets ftw Co-Authored-By: Amanda Pinsker --- command/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/root.go b/command/root.go index 9c9b5e692..150a9292c 100644 --- a/command/root.go +++ b/command/root.go @@ -232,7 +232,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]`}, + gh [flags]`}, {"CORE COMMANDS", strings.Join(coreCommands, "\n")}, {"ADDITIONAL COMMANDS", strings.Join(additionalCommands, "\n")}, {"FEEDBACK", ` From 833f8b4f2c8e6b6f540944aa168fad1c41095267 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 22 Apr 2020 13:50:06 -0700 Subject: [PATCH 2/3] Update command/root.go Co-Authored-By: Amanda Pinsker --- command/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/root.go b/command/root.go index 150a9292c..1c02550f1 100644 --- a/command/root.go +++ b/command/root.go @@ -240,8 +240,8 @@ func rootHelpFunc(command *cobra.Command, s []string) { Open an issue using “gh issue create -R cli/cli`}, {"FLAGS", strings.TrimRight(command.LocalFlags().FlagUsages(), "\n")}, {"EXAMPLES", ` - $ cd your-repository - $ gh pr list + $ gh issue create + $ gh repo clone $ gh pr checkout 321`}, {"LEARN MORE", ` Use "gh --help" for more information about a command. From 0d792573126b1ae9ba197bc2d5826d87e88af633 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 22 Apr 2020 13:50:52 -0700 Subject: [PATCH 3/3] use backets Co-Authored-By: Amanda Pinsker --- command/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/root.go b/command/root.go index 1c02550f1..77d81f115 100644 --- a/command/root.go +++ b/command/root.go @@ -244,7 +244,7 @@ func rootHelpFunc(command *cobra.Command, s []string) { $ gh repo clone $ gh pr checkout 321`}, {"LEARN MORE", ` - Use "gh --help" for more information about a command. + Use "gh [command] [subcommand] --help" for more information about a command. Read the manual at `}, }