<commit_before>from argparse import ArgumentParser

parser = ArgumentParser()
parser.add_argument('--cgi', dest='cgi_handler',
                    action='store_true',
                    help='Run as CGI Server')
parser.add_argument('port',  action='store', default=8000, type=int, nargs='?',
                   help='Specify alternative port [Default:8000]')

args = parser.parse_args()
print args<commit_msg>argparse example.<commit_after>import argparse
import filecmp

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description="Directory comparison")
    parser.add_argument("--recurse", "-r", action="store_true", default=False)
    parser.add_argument('dirs', nargs=2)
    options = parser.parse_args()

    dd = filecmp.dircmp(options.dirs[0], options.dirs[1])

    if options.recurse:
        dd.report_full_closure()
    else:
        dd.report()
{'fraction_non_alphanumeric': 0.13501144164759726, 'fraction_numerical': 0.012585812356979404, 'mean_word_length': 3.704301075268817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3601461', 'n_tokens_mistral': 275, 'n_tokens_neox': 259, 'n_words': 52}