def invoke_command(command):
	"""Invoke a command, printing the command to stdout.

	Args:
	  command: Command and arguments as a list.
	"""
	for arg in command:
		if arg.startswith('-'):
			sys.stdout.write("\\\n    ")

		if ' ' in arg or '#' in arg:
			sys.stdout.write(repr(arg))
		else:
			sys.stdout.write(arg)

		sys.stdout.write(' ')

	sys.stdout.write('\n')
	return subprocess.call(command)
dataset/ETHPy150Open freedoom/freedoom/graphics/text/common.py/invoke_command/original