]> git.decadent.org.uk Git - dak.git/commitdiff
print help on non-existant dirs
authorFilippo Giunchedi <filippo@esaurito.net>
Sun, 30 Nov 2008 10:38:44 +0000 (11:38 +0100)
committerFilippo Giunchedi <filippo@esaurito.net>
Sun, 30 Nov 2008 10:38:44 +0000 (11:38 +0100)
queue_rss.py

index 2f0ee1492b6407bbe325f1202136545dd885760e..783e5ae17eb21fb66e84608eecdf36b8cce2ea7f 100755 (executable)
@@ -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)