#!/usr/bin/env bash
#-------------------------------------------------------------------------------
# Copyright (C) 2012-2019 British Crown (Met Office) & Contributors.
#
# This file is part of Rose, a framework for meteorological suites.
#
# Rose is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Rose is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
#-------------------------------------------------------------------------------
# NAME
#     rose metadata-check
#
# SYNOPSIS
#     rose metadata-check [OPTIONS] [ID ...]
#
# DESCRIPTION
#     Validate configuration metadata.
#
# OPTIONS
#     --config=DIR, -C DIR
#        The directory containing the configuration metadata i.e.
#        containing the `rose-meta.conf` file, amongst other things.
#        If not specified, the current directory will be used.
#     --property=PROPERTY, -p PROPERTY
#        Only check a certain property e.g. trigger. This can be
#        specified more than once.
# ARGUMENTS
#     ID
#        One or more sections (configuration IDs) to check in the
#        metadata e.g.`env=FOO` or `namelist:bar`. If specified, only
#        this section will be checked.
#-------------------------------------------------------------------------------
exec python2 -m rose.metadata_check "$@"
