def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('--server-port', '-p', default=2081, type=int, help='Server_Port to use')
    parser.add_argument('--run-server', '-s', action='store_true', help='Run a ping server')
    parser.add_argument('server_address', default='localhost', help='Server to ping, no effect if running as a server.')
    args = parser.parse_args()
    if args.run_server:
        return run_server(args.server_port)
    else:
        return run_client(args.server_address, args.server_port)
def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('--server-port', '-p', default=2081, type=int, help='Server_Port to use')
    parser.add_argument('--run-server', '-s', action='store_true', help='Run a ping server')
    parser.add_argument('server_address', default='localhost', help='Server to ping, no effect if running as a server.')
    args = parser.parse_args()
    if args.run_server:
        return run_server(args.server_port)
    else:
        return run_client(args.server_address, args.server_port)