From 8f0652cb545d15ffd3402f06f520cbe38af3ea7f Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 25 Jun 2024 16:04:52 +0200 Subject: [PATCH] fixup --- python/sdist/amici/petab/cli/import_petab.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/python/sdist/amici/petab/cli/import_petab.py b/python/sdist/amici/petab/cli/import_petab.py index 436999f3f0..39fa9b9bfe 100644 --- a/python/sdist/amici/petab/cli/import_petab.py +++ b/python/sdist/amici/petab/cli/import_petab.py @@ -101,6 +101,12 @@ def _parse_cli_args(): "as positional argument instead.", ) + parser.add_argument( + dest="yaml_file_name", + help="PEtab YAML problem filename.", + nargs="?", + ) + parser.add_argument( "-n", "--model-name", @@ -119,8 +125,8 @@ def _parse_cli_args(): ] ): print( - "Passing individual tables to amico_import_petab is deprecated, " - "please pass a PEtab YAML file instead." + "WARNING: Passing individual tables to amico_import_petab is " + "deprecated, please pass a PEtab YAML file instead." ) if ( not args.yaml_file_name and not args.yaml_file_name_deprecated @@ -141,8 +147,8 @@ def _parse_cli_args(): if args.yaml_file_name_deprecated: print( - "-y/--yaml is deprecated. Pass the YAML file as positional " - "argument instead." + "WARNING: -y/--yaml is deprecated. Pass the YAML file as " + "positional argument instead." ) args.yaml_file_name = args.yaml_file_name_deprecated