INNER CODE UNIT · Python

print_header

racenis/tram-sdk · devtools/codegen.py:453

def print_header():
	print("Tramway SDK Code generator v0.1.1")

def print_help():
	print("This tool can generate C++ code for the Tramway SDK.")
	print("Commandline options:")
	print("\t--help\t\tPrints this message")
	print("\tmake [name]\tGenerates a .h and .cpp file for an entity type")
	print("\trefresh [file]\tRegenerates code and entity definition from header file")
	print("\t[file]\t\tSame as 'refresh' option")

if len(sys.argv) > 1:
	command = sys.argv[1]
	parameter = sys.argv[2] if len(sys.argv) > 2 else None
	
	if command == "make":
		print_header()
		

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…