def METHOD_NAME():
    args = parse_args()
    try:
        token = generate_token_oauth(args.url, args.validity, args.activity)
    except NoTokenEndpoint:
        token = generate_token(args.url, args.validity, args.activity)
    print(token)