mirror of
https://github.com/pikami/rss-dl.git
synced 2025-12-22 02:20:03 +00:00
Added html parser
This commit is contained in:
@@ -10,11 +10,13 @@ import (
|
||||
var Config struct {
|
||||
FeedURL string
|
||||
OutputPath string
|
||||
ParseHtml bool
|
||||
}
|
||||
|
||||
// GetConfig - Returns Config object
|
||||
func GetConfig() {
|
||||
outputPath := flag.String("output", ".", "Output path")
|
||||
parseHtml := flag.Bool("parsehtml", false, "Save content as html")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
@@ -26,4 +28,5 @@ func GetConfig() {
|
||||
|
||||
Config.FeedURL = flag.Args()[len(args)-1]
|
||||
Config.OutputPath = *outputPath
|
||||
Config.ParseHtml = *parseHtml
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user