Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jun 25, 2024
1 parent f9f6c61 commit 8f0652c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions python/sdist/amici/petab/cli/import_petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 8f0652c

Please sign in to comment.