summaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-03-23 08:12:53 -0600
committernytpu <alex@nytpu.com>2021-03-23 08:15:36 -0600
commit2cd16124f8cd1f3ff527b37cb7d18a7b818841af (patch)
tree6a262f2455899b2b96a246f77737bbbb2d4318c6 /flags.go
parent9549e569f98ae703f7d8865a3315ceb74f13bf7f (diff)
add timeout flag to refresh
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/flags.go b/flags.go
index 5fcba98..3967da8 100644
--- a/flags.go
+++ b/flags.go
@@ -52,6 +52,11 @@ var (
`Number of worker threads to use when refreshing feeds. More is faster,
but there are more concurrent outgoing requests then.`,
)
+ refreshTimeoutFlag = commands["refresh"].IntP(
+ "timeout", "t",
+ 10,
+ `Set a timeout for requests, in seconds.`,
+ )
// remove
removeFeedsFlag = commands["remove"].BoolP(