From: Filippo Giunchedi Date: Sun, 30 Nov 2008 10:38:44 +0000 (+0100) Subject: print help on non-existant dirs X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=aa091b6e01202b8540fed516dc3d8e18a5dfc931;p=dak.git print help on non-existant dirs --- 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)