

def setupParser(parser):
    parser.add_argument('title', type=str, help='Title of the paste.')
    text_arg_group = parser.add_mutually_exclusive_group(required=True)
    text_arg_group.add_argument('--text', '-t', type=str, default='', help='Text of the paste.')
    text_arg_group.add_argument('--text-file', '-f', metavar='FILENAME', type=argparse.FileType('r'), help="a file to read the paste from, use '-' to specify stdin")
    parser.add_argument('--language', '-l', metavar='LANGUAGE', type=str, default=None, help='The language of the paste ie. C++, java etc. default detectsfrom filename in title.')
    parser.add_argument('--format-id', '--id', action='store_true', dest='format_id', help='only print the ID of the paste')
    phlsys_makeconduit.add_argparse_arguments(parser)

dataset/ETHPy150Open bloomberg/phabricator-tools/py/aon/aoncmd_paste.py setupParser/original