From 4c87ce59d350b3d8c3458f538ea6c1b6e5cfa455 Mon Sep 17 00:00:00 2001 From: goatchurch <devnull@localhost> Date: Sun, 28 Jun 2009 20:47:11 +0100 Subject: [PATCH] [svn] with command option --- databaseReset.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/databaseReset.py b/databaseReset.py index e9092ce..7bc1021 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -76,7 +76,13 @@ def export_cavetab(): tocavetab.writeCaveTab(outfile) outfile.close() +if __name__ == "__main__": + import sys + if "reset" in sys.argv: + reset() + else: + print "Do 'python databaseReset.py reset'" - \ No newline at end of file +