diff --git a/command/root.go b/command/root.go index 4096306b1..611022d2d 100644 --- a/command/root.go +++ b/command/root.go @@ -250,9 +250,10 @@ func rootHelpFunc(command *cobra.Command, s []string) { {"USAGE", command.UsageString()}, {"CORE COMMANDS", strings.Join(coreCommands, "\n")}, {"ADDITIONAL COMMANDS", strings.Join(additionalCommands, "\n")}, + {"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. @@ -260,7 +261,6 @@ func rootHelpFunc(command *cobra.Command, s []string) { {"FEEDBACK", ` Fill out our feedback form Open an issue using “gh issue create -R cli/cli”`}, - {"FLAGS", strings.TrimRight(command.LocalFlags().FlagUsages(), "\n")}, } out := colorableOut(command)