summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgoatchurch <devnull@localhost>2009-06-28 20:47:11 +0100
committergoatchurch <devnull@localhost>2009-06-28 20:47:11 +0100
commita9c22a3cff4d7b1faa8a17a81705301ad5dbcf00 (patch)
treec550c197768c9a3e28c26bc30203c3c6eebbd452
parentb847bde6b78ea36e2dd749ddadad63c163a23c47 (diff)
downloadtroggle-a9c22a3cff4d7b1faa8a17a81705301ad5dbcf00.tar.gz
troggle-a9c22a3cff4d7b1faa8a17a81705301ad5dbcf00.tar.bz2
troggle-a9c22a3cff4d7b1faa8a17a81705301ad5dbcf00.zip
[svn] with command option
-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
+