forked from metomi/rose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrose-metadata-gen
executable file
·49 lines (49 loc) · 1.97 KB
/
rose-metadata-gen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/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-gen
#
# SYNOPSIS
# rose metadata-gen [OPTIONS] [PROPERTY=VALUE ...]
#
# DESCRIPTION
# Automatically generate metadata from an application or suite
# configuration. An aid for metadata development.
#
# WARNING: May Contain Thorns.
#
# OPTIONS
# --auto-type
# Add a 'best guess' for the `type` and `length` metadata.
# --config=DIR, -C DIR
# The directory containing the application or suite
# configuration to read in. If not specified, the
# current directory will be used.
# --output=DIR, -O DIR
# A directory to output the metadata to. If not specified,
# output to the application or suite metadata directory.
#
# ARGUMENTS
# PROPERTY[=VALUE] ...
# One or more `key=value` pairs of properties to specify for
# every setting e.g. `compulsory=true`. If `=VALUE` is missing,
# the property will be set to a null string in each setting.
#-------------------------------------------------------------------------------
exec python3 -m metomi.rose.metadata_gen "$@"