@click.command()<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=str, help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=str, help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', type=str, help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', type=str, help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', type=str, help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', default=ATHENACLIRC, type=click.Path(dir_okay=False), help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', type=str, default='<STR_LIT:default>', help='<STR_LIT>')<EOL>@click.argument('<STR_LIT>', default='<STR_LIT:default>', nargs=<NUM_LIT:1>)<EOL>def cli(execute, region, aws_access_key_id, aws_secret_access_key,<EOL>s3_staging_dir, athenaclirc, profile, database):
if (athenaclirc == ATHENACLIRC) and (not os.path.exists(os.path.expanduser(ATHENACLIRC))):<EOL><INDENT>err_msg = '''<STR_LIT>''' % ATHENACLIRC<EOL>print(err_msg)<EOL>write_default_config(DEFAULT_CONFIG_FILE, ATHENACLIRC)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>if profile != '<STR_LIT:default>':<EOL><INDENT>os.environ['<STR_LIT>'] = profile<EOL><DEDENT>athenacli = AthenaCli(<EOL>region=region,<EOL>aws_access_key_id=aws_access_key_id,<EOL>aws_secret_access_key= aws_secret_access_key,<EOL>s3_staging_dir=s3_staging_dir,<EOL>athenaclirc=athenaclirc,<EOL>profile=profile,<EOL>database=database<EOL>)<EOL>if execute:<EOL><INDENT>if os.path.exists(execute):<EOL><INDENT>with open(execute) as f:<EOL><INDENT>query = f.read()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>query = execute<EOL><DEDENT>try:<EOL><INDENT>athenacli.formatter.format_name = '<STR_LIT>'<EOL>athenacli.run_query(query)<EOL>exit(<NUM_LIT:0>)<EOL><DEDENT>except Exception as e:<EOL><INDENT>click.secho(str(e), err=True, fg='<STR_LIT>')<EOL>exit(<NUM_LIT:1>)<EOL><DEDENT><DEDENT>athenacli.run_cli()<EOL>
A Athena terminal client with auto-completion and syntax highlighting.

    \b
    Examples:
      - athenacli
      - athenacli my_database