Commit 33623e08 authored by Simon Pintarelli's avatar Simon Pintarelli

--hashes flag don't use a default value

parent 07802093
......@@ -56,7 +56,6 @@ if __name__ == '__main__':
""")
parser.add_argument("--hashes",
default="hashes.txt",
help="""File containing the md5 hashes of the original exam files.
Usually the output of:
find ExamDir -type f -exec md5sum {} + > hashes.txt
......@@ -72,7 +71,10 @@ if __name__ == '__main__':
""")
args = parser.parse_args()
file_hashes = get_file_hashes(args.hashes)
if args.hashes:
file_hashes = get_file_hashes(args.hashes)
else:
file_hashes = []
# Untabify, TODO this should also be applied to other files
subprocess.call(["find", ".", "-name", "'*.py'", "-exec", "sed -i 's/\t/ /g'", "{}", ";"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment