summaryrefslogtreecommitdiff
path: root/watchnews-cli
diff options
context:
space:
mode:
Diffstat (limited to 'watchnews-cli')
-rwxr-xr-xwatchnews-cli4
1 files changed, 3 insertions, 1 deletions
diff --git a/watchnews-cli b/watchnews-cli
index df41706..f3c080a 100755
--- a/watchnews-cli
+++ b/watchnews-cli
@@ -23,6 +23,8 @@ if __name__ == '__main__':
help='List all registered feeds')
parser.add_argument('--web', action='store_true',
help='Run web interface')
+ parser.add_argument('--web-debug', action='store_true',
+ help='Run web interface in debug mode')
parser.add_argument('--db', metavar='DBPATH',
default=os.path.join(os.path.dirname(__file__), 'db.sqlite'),
help='Path to sqlite database file')
@@ -55,7 +57,7 @@ if __name__ == '__main__':
print('{0.id} - {1} - {0.title} - {0.url}'.format(
feed, feed.created_date.strftime('%x %X')))
if args.web:
- web.get_app().run()
+ web.get_app().run(debug=args.web_debug)
if args.rss:
print(rss.rss())