INNER CODE UNIT · Python

print_usage

MathCancer/PhysiCell · beta/download_binary.py:30

def print_usage():
     print("Usage : python download_binary.py <model>")
     print("")
     print("Models available : %s" % (",".join(list_models.keys())))

if len(sys.argv) < 2:
     print_usage()
     exit(1)
     
model = sys.argv[1]
     
if model in ["-h", "--help"] or model not in list_models.keys():
     print_usage()
     exit(1)

print('> Chosen model: ', model)

os_type = platform.system()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…