summaryrefslogtreecommitdiffstats
path: root/databaseReset.py
diff options
context:
space:
mode:
Diffstat (limited to 'databaseReset.py')
-rw-r--r--databaseReset.py8
1 files changed, 7 insertions, 1 deletions
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
+