From a80d3f29ff0b76cea00672f24c408695ac8957d6 Mon Sep 17 00:00:00 2001 From: nytpu Date: Thu, 18 Mar 2021 13:48:26 -0600 Subject: add flag for number of refresh workers --- flags.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'flags.go') diff --git a/flags.go b/flags.go index 297018c..d70f2d5 100644 --- a/flags.go +++ b/flags.go @@ -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.`, + ) ) -- cgit v1.2.3