def main(argv=None):
if len(argv):<EOL><INDENT>commands = '<STR_LIT:U+0020>'.join(argv)<EOL>comPort, commands = commands.split(None, <NUM_LIT:1>)<EOL>sendCommands(comPort, commands)<EOL><DEDENT>return <NUM_LIT:0><EOL>
Send X10 commands when module is used from the command line.

    This uses syntax similar to sendCommands, for example:

    x10.py com2 A1 On, A2 Off, B All Off