def main():
parser = argparse.ArgumentParser(description = '<STR_LIT>',<EOL>parents = [XMPPSettings.get_arg_parser()])<EOL>parser.add_argument('<STR_LIT>', metavar = '<STR_LIT>', <EOL>help = '<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>',<EOL>action = '<STR_LIT>', dest = '<STR_LIT>',<EOL>const = logging.DEBUG, default = logging.INFO,<EOL>help = '<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', const = logging.ERROR,<EOL>action = '<STR_LIT>', dest = '<STR_LIT>',<EOL>help = '<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', action = '<STR_LIT:store_true>',<EOL>help = '<STR_LIT>')<EOL>args = parser.parse_args()<EOL>settings = XMPPSettings({<EOL>"<STR_LIT>": "<STR_LIT>"<EOL>})<EOL>settings.load_arguments(args)<EOL>if settings.get("<STR_LIT:password>") is None:<EOL><INDENT>password = getpass("<STR_LIT>".format(args.jid))<EOL>if sys.version_info.major < <NUM_LIT:3>:<EOL><INDENT>password = password.decode("<STR_LIT:utf-8>")<EOL><DEDENT>settings["<STR_LIT:password>"] = password<EOL><DEDENT>if sys.version_info.major < <NUM_LIT:3>:<EOL><INDENT>args.jid = args.jid.decode("<STR_LIT:utf-8>")<EOL><DEDENT>logging.basicConfig(level = args.log_level)<EOL>if args.trace:<EOL><INDENT>print("<STR_LIT>")<EOL>handler = logging.StreamHandler()<EOL>handler.setLevel(logging.DEBUG)<EOL>for logger in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>logger = logging.getLogger(logger)<EOL>logger.setLevel(logging.DEBUG)<EOL>logger.addHandler(handler)<EOL>logger.propagate = False<EOL><DEDENT><DEDENT>bot = EchoBot(JID(args.jid), settings)<EOL>try:<EOL><INDENT>bot.run()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>bot.disconnect()<EOL><DEDENT>
Parse the command-line arguments and run the bot.