提交 aa091b6e 编写于 作者: F Filippo Giunchedi

print help on non-existant dirs

上级 6f7127ec
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册