def main(argv=None):
args = _cmdline(argv)<EOL>config.load(args.config)<EOL>results = get_package_list(args.search_term)<EOL>results = sorted(results, key=lambda a: sort_function(a[<NUM_LIT:1>]), reverse=True)<EOL>results_normalized = list()<EOL>last_result = None<EOL>for result in results:<EOL><INDENT>if result[<NUM_LIT:0>] == last_result:<EOL><INDENT>continue<EOL><DEDENT>results_normalized.append(result)<EOL>last_result = result[<NUM_LIT:0>]<EOL><DEDENT>print('<STR_LIT:\n>'.join(["<STR_LIT>" % (_[<NUM_LIT:0>], _[<NUM_LIT:1>]) for _ in results_normalized]))<EOL>return <NUM_LIT:0><EOL>
Execute the application CLI.

    Arguments are taken from sys.argv by default.