From aa091b6e01202b8540fed516dc3d8e18a5dfc931 Mon Sep 17 00:00:00 2001 From: Filippo Giunchedi Date: Sun, 30 Nov 2008 11:38:44 +0100 Subject: [PATCH] print help on non-existant dirs --- queue_rss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/queue_rss.py b/queue_rss.py index 2f0ee149..783e5ae1 100755 --- a/queue_rss.py +++ b/queue_rss.py @@ -147,10 +147,12 @@ if __name__ == "__main__": if not os.path.exists(settings.outdir): sys.stderr.write("Outdir '%s' does not exists\n" % settings.outdir) + parser.print_help() sys.exit(1) if not os.path.exists(settings.datadir): sys.stderr.write("Datadir '%s' does not exists\n" % settings.datadir) + parser.print_help() sys.exit(1) status_db = os.path.join(settings.datadir, db_filename) -- 2.39.5