diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-06-30 14:22:45 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-06-30 14:22:45 -0700 |
commit | 5cf504745b07ac017e7c62e83b5efe797d3b74e3 (patch) | |
tree | d930f9cc59d03f548ec7586624789c62853bc5ca /cli | |
parent | 9c0f882ba0c7f8635ff7ab8007d134f7aefd69f2 (diff) |
Add cli flag to reset all feed errors
Diffstat (limited to 'cli')
-rw-r--r-- | cli/cli.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |