write help text
This commit is contained in:
parent
bd28927a4e
commit
1279a879c3
12
cmd/root.go
12
cmd/root.go
|
@ -87,14 +87,10 @@ func rssfetch(cmd *cobra.Command, urls []string) {
|
|||
|
||||
// rootCmd represents the base command when called without any subcommands
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "rssfetch",
|
||||
Short: "A brief description of your application",
|
||||
Long: `A longer description that spans multiple lines and likely contains
|
||||
examples and usage of using your application. For example:
|
||||
|
||||
Cobra is a CLI library for Go that empowers applications.
|
||||
This application is a tool to generate the needed files
|
||||
to quickly create a Cobra application.`,
|
||||
Use: "rssfetch <url> [url ...]",
|
||||
Short: "rssfetch outputs items contained in rss feeds",
|
||||
Long: `rssfetch outputs items contained in rss feeds.
|
||||
You can specify the output format with the -o flag. For instance, -o "{{.Title}}" will only output the title of each item.`,
|
||||
Run: rssfetch,
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue