implement '--clear-cache'

Effectively clears all cached values from the cache database by
executing "DELETE FROM data" without any further user input.
This commit is contained in:
Mike Fährmann
2019-04-25 21:30:16 +02:00
parent 0318c610dc
commit bc26fc2439
3 changed files with 48 additions and 11 deletions

View File

@@ -93,6 +93,11 @@ def build_parser():
metavar="URL", action=ConfigAction, dest="proxy",
help="Use the specified proxy",
)
general.add_argument(
"--clear-cache",
dest="clear_cache", action="store_true",
help="Delete all cached login sessions, cookies, etc.",
)
output = parser.add_argument_group("Output Options")
output.add_argument(