write help text

This commit is contained in:
filifa 2024-06-18 20:17:03 -05:00
parent bd28927a4e
commit 1279a879c3
1 changed files with 4 additions and 8 deletions

View File

@ -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),
}