aboutsummaryrefslogtreecommitdiffhomepage
path: root/cli
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-06-30 14:22:45 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-06-30 14:22:45 -0700
commit5cf504745b07ac017e7c62e83b5efe797d3b74e3 (patch)
treed930f9cc59d03f548ec7586624789c62853bc5ca /cli
parent9c0f882ba0c7f8635ff7ab8007d134f7aefd69f2 (diff)
Add cli flag to reset all feed errors
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/cli.go b/cli/cli.go
index 84c0695..4f5417c 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -23,6 +23,7 @@ func Parse() {
flagFlushSessions := flag.Bool("flush-sessions", false, "Flush all sessions (disconnect users)")
flagCreateAdmin := flag.Bool("create-admin", false, "Create admin user")
flagResetPassword := flag.Bool("reset-password", false, "Reset user password")
+ flagResetFeedErrors := flag.Bool("reset-feed-errors", false, "Clear all feed errors for all users")
flagDebugMode := flag.Bool("debug", false, "Enable debug mode (more verbose output)")
flag.Parse()
@@ -52,6 +53,11 @@ func Parse() {
return
}
+ if *flagResetFeedErrors {
+ store.ResetFeedErrors()
+ return
+ }
+
if *flagFlushSessions {
flushSessions(store)
return