INNER CODE UNIT · Python

print_help

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

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()
		
		if parameter is None:
			print("To use this command, specify the name of the entity type that will be")
			print("generated. This name will be used as the name of the entity type, name of the")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…