add flag for number of refresh workers

This commit is contained in:
nytpu
2021-03-18 13:48:26 -06:00
parent 326edc97c5
commit a80d3f29ff
2 changed files with 11 additions and 4 deletions
+9 -2
View File
@@ -40,8 +40,15 @@ var commands = map[string]*flag.FlagSet{
var (
// add
addTypeFlag = commands["add"].BoolP(
"watch", "w", // long and shorthand flag
false, // default
"watch", "w",
false,
`Watch a page instead of adding it as a feed.`,
)
refreshWorkersFlag = commands["refresh"].IntP(
"num-workers", "n",
5, // 5 workers is a safe default
`Number of worker threads to use when refreshing feeds. More is faster,
but there are more concurrent outgoing requests then.`,
)
)