From 2b6c47e62194cb3a4fe4e7ca8753974f36fcd751 Mon Sep 17 00:00:00 2001 From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu> Date: Mon, 21 Jun 2021 16:33:31 +0200 Subject: [PATCH] Added file option to cli. --- climax/core/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/climax/core/cli.py b/climax/core/cli.py index cc25401..84474ec 100644 --- a/climax/core/cli.py +++ b/climax/core/cli.py @@ -112,4 +112,9 @@ def preprocess_parser(): .format(default)), default=False, nargs='?', const=True, metavar='') + # optional argument: csv file describing Cordex simulations + parser.add_argument('-f', '--file', type=pathlib.Path, + help=('Path to EuroCordex inventory .csv file. {}.' + .format(default)), default=None, metavar='') + return parser -- GitLab