You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: man.go
    path of file: ./repos/jira-cli/internal/cmd/man
    
    the code of the file until where you have to start completion: package man

import (
	"os"

	"github.com/spf13/cobra"
	"github.com/spf13/cobra/doc"
)

const (
	examples = `# Generate man pages in default location /tmp/man-jira-cli
$ jira man --generate

# Generate man pages in specified location
$ jir
    
func NewCmdMan() *cobra.Command {
	cmd := cobra.Command{
		Use:     "man",
		Short:   "Help generate man(7) pages for Jira CLI",
		Long:    "Help generate man pages for Jira CLI compatible with UNIX style man pages.",
		Example: examples,
		RunE:    man,
	}

	cmd.Flags().BoolP("generate", "g", false, "Generate the man pages for Jira CLI")
	cmd.Flags().StringP("output", "o", "/tmp/man-jira-cli", "Name of the directory where the man pages would be generated")

	return &cmd
}