Skip to content

Commit

Permalink
Deprecate --id option
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Aug 13, 2023
1 parent 552af05 commit 0539ff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interfaces/cython/cantera/ck2yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2216,8 +2216,9 @@ def main(argv):

if '--id' in options:
phase_name = options.get('--id', 'gas')
logger.warning("\nFutureWarning: "
"Option '--id=...' will be replaced by '--name=...'")
logger.warning("\nDeprecationWarning: "

Check warning on line 2219 in interfaces/cython/cantera/ck2yaml.py

View check run for this annotation

Codecov / codecov/patch

interfaces/cython/cantera/ck2yaml.py#L2219

Added line #L2219 was not covered by tests
"Option '--id=...' is replaced by '--name=...' and will be "
"removed after Cantera 3.0.\n")
else:
phase_name = options.get('--name', 'gas')

Expand Down

0 comments on commit 0539ff5

Please sign in to comment.