def get_args():

    parser = argparse.ArgumentParser()
    parser.add_argument('-p', '--port')
    parser.add_argument('-v', '--version', action='store_true',
                        help='prints the Poet version number and exits')
    return parser.parse_args()
Parse arguments and return dictionary.
dataset/ETHPy150Open mossberg/poet/server.py/get_args