Skip to content

Commit 57b9b20

Browse files
authored
Merge pull request #13632 from cli/babakks/fix-discussion-docs
docs(discussion): polish help docs
2 parents cac0ba1 + 2ededc5 commit 57b9b20

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/cmd/discussion/create/create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
3939
cmd := &cobra.Command{
4040
Use: "create [flags]",
4141
Short: "Create a new discussion (preview)",
42-
Long: heredoc.Doc(`
42+
Long: heredoc.Docf(`
4343
Create a new GitHub Discussion in a repository.
4444
45-
With '--title', '--body', and '--category', a discussion is created non-interactively.
45+
With %[1]s--title%[1]s, %[1]s--body%[1]s (or %[1]s--body-file%[1]s), and %[1]s--category%[1]s, a discussion is created non-interactively.
4646
Omitting any of these flags triggers interactive prompts when connected to a terminal.
47-
`),
47+
`, "`"),
4848
Example: heredoc.Doc(`
4949
# Create interactively
5050
$ gh discussion create

pkg/cmd/discussion/discussion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func NewCmdDiscussion(f *cmdutil.Factory) *cobra.Command {
2121
`),
2222
Example: heredoc.Doc(`
2323
$ gh discussion list
24-
$ gh discussion create --category "General" --title "Hello"
24+
$ gh discussion create --category "General" --title "Hello" --body "Hello World!"
2525
$ gh discussion view 123
2626
`),
2727
Annotations: map[string]string{

0 commit comments

Comments
 (0)