def metadata(ctx, drafts, path):
    """List metadata for [PROJECT] [VERSION]"""
    _rws = partial(rws_call, ctx)
    if len(path) == 0:
        _rws(MetadataStudiesRequest(), default_attr='oid')
    elif len(path) == 1:
        if drafts:
            _rws(StudyDraftsRequest(path[0]), default_attr='oid')
        else:
            _rws(StudyVersionsRequest(path[0]), default_attr='oid')
    elif len(path) == 2:
        _rws(StudyVersionRequest(path[0], path[1]))
    else:
        click.echo('Too many arguments')