def main_with_args(api_key, session_id, reset, session_only):
    fw = flywheel.Flywheel(api_key)
    if session_id:
        project_id = utils.get_project_id_from_session_id(fw, session_id)
    else:
        print('Session id is required!')
        sys.exit(1)
    curate_bids_dir(fw, project_id, session_id, reset=reset, session_only=session_only)
def main_with_args(api_key, session_id, reset, session_only):
    fw = flywheel.Flywheel(api_key)
    if session_id:
        project_id = utils.get_project_id_from_session_id(fw, session_id)
    else:
        print('Session id is required!')
        sys.exit(1)
    curate_bids_dir(fw, project_id, session_id, reset=reset, session_only=session_only)