From e0d4d4b8cbbadd596c6c1a93a45495c56a9b200a Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Wed, 21 Aug 2024 09:57:08 +0200 Subject: [PATCH] adds formatsPath to query_cmd --- lodstorage/__init__.py | 2 +- lodstorage/query_cmd.py | 6 ++++++ lodstorage/querymain.py | 6 ------ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lodstorage/__init__.py b/lodstorage/__init__.py index ea370a8..def467e 100644 --- a/lodstorage/__init__.py +++ b/lodstorage/__init__.py @@ -1 +1 @@ -__version__ = "0.12.0" +__version__ = "0.12.1" diff --git a/lodstorage/query_cmd.py b/lodstorage/query_cmd.py index 8bf62f2..58e2942 100644 --- a/lodstorage/query_cmd.py +++ b/lodstorage/query_cmd.py @@ -135,6 +135,12 @@ def add_args(cls, parser: ArgumentParser): default=None, help="path to yaml file to configure endpoints to use for queries", ) + parser.add_argument( + "-fp", + "--formatsPath", + default=ValueFormatter.formatsPath, + help="path to yaml file to configure formats to use for query result documentation", + ) parser.add_argument( "-li", "--list", diff --git a/lodstorage/querymain.py b/lodstorage/querymain.py index e19899b..80a1a4a 100644 --- a/lodstorage/querymain.py +++ b/lodstorage/querymain.py @@ -249,12 +249,6 @@ def main(argv=None, lang=None): # IGNORE:C0111 ) QueryCmd.add_args(parser) - parser.add_argument( - "-fp", - "--formatsPath", - default=ValueFormatter.formatsPath, - help="path to yaml file to configure formats to use for query result documentation", - ) parser.add_argument( "-en", "--endpointName",