Wrap flags with backticks, continued

This commit is contained in:
Yukai Chou 2024-08-10 10:20:53 +08:00
parent 18d58b8d84
commit ac77d6750d

View file

@ -45,13 +45,15 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
cmd := &cobra.Command{
Use: "view [<repository>]",
Short: "View a repository",
Long: `Display the description and the README of a GitHub repository.
Long: heredoc.Docf(`
Display the description and the README of a GitHub repository.
With no argument, the repository for the current directory is displayed.
With no argument, the repository for the current directory is displayed.
With '--web', open the repository in a web browser instead.
With %[1]s--web%[1]s, open the repository in a web browser instead.
With '--branch', view a specific branch of the repository.`,
With %[1]s--branch%[1]s, view a specific branch of the repository.
`, "`"),
Args: cobra.MaximumNArgs(1),
RunE: func(c *cobra.Command, args []string) error {
if len(args) > 0 {