added profile option

This commit is contained in:
Philip Sargent 2020-05-20 12:18:12 +01:00
parent e017c6effc
commit edbe793c68

View File

@ -357,6 +357,7 @@ def usage():
survexpos - just the x/y/z Pos out of the survex files
tunnel - read in the Tunnel files - which scans the survey scans too
profile - print the profile from previous runs. Import nothing.
resetend - (archaic?)
writecaves - *disabled* (archaic?)
@ -424,7 +425,7 @@ if __name__ == "__main__":
jq.enq("survexpos",import_survexpos)
elif "survexpos" in sys.argv:
jq.enq("survexpos",import_survexpos)
elif "surveys" in sys.argv:
elif "surveyimgs" in sys.argv:
jq.enq("surveyimgs",import_surveyimgs)
elif "tunnel" in sys.argv:
jq.enq("tunnel",import_tunnelfiles)
@ -434,14 +435,12 @@ if __name__ == "__main__":
jq.enq("QMs",import_QMs)
jq.enq("tunnel",import_tunnelfiles)
jq.enq("surveyimgs",import_surveyimgs)
#import_descriptions() # no longer present
#parse_descriptions() # no longer present
# elif "writeCaves" in sys.argv:
# writeCaves() # no longer present
elif "autologbooks" in sys.argv: # untested in 2020
import_auto_logbooks()
elif "dumplogbooks" in sys.argv: # untested in 2020
dumplogbooks()
elif "profile" in sys.argv:
jq.showprofile()
else:
usage()
print("%s not recognised as a command." % sys.argv[1])