def main():
    global VERBOSE
    args = parse_args()
    oauth_flow_args = [args.noauth_local_webserver] if args.noauth_local_webserver else []
    VERBOSE = args.verbose
    maybe_print('--verbose: printing extra information')
    storage = Storage(args.storage_file)
    credentials = get_credentials(storage, oauth_flow_args)
    maybe_print('credentials stored in ' + args.storage_file)
    maybe_print('access_token: ' + credentials.access_token)
    maybe_print('refresh_token: ' + credentials.refresh_token)