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
|
// rootCmd represents the base command when called without any subcommands
|
||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
Use: "rssfetch",
|
Use: "rssfetch <url> [url ...]",
|
||||||
Short: "A brief description of your application",
|
Short: "rssfetch outputs items contained in rss feeds",
|
||||||
Long: `A longer description that spans multiple lines and likely contains
|
Long: `rssfetch outputs items contained in rss feeds.
|
||||||
examples and usage of using your application. For example:
|
You can specify the output format with the -o flag. For instance, -o "{{.Title}}" will only output the title of each item.`,
|
||||||
|
|
||||||
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.`,
|
|
||||||
Run: rssfetch,
|
Run: rssfetch,
|
||||||
Args: cobra.MinimumNArgs(1),
|
Args: cobra.MinimumNArgs(1),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue