Skip to content

Commit

Permalink
Print out jwst or roman versions from strun --version
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavies-st committed Aug 1, 2023
1 parent 6f84b52 commit faa5460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
0.5.1 (unreleased)
==================

-
- Print out ``jwst`` or ``romancal`` versions from ``strun --version``. [#98]

0.5.0 (2023-04-19)
==================
Expand Down
5 changes: 3 additions & 2 deletions scripts/strun
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ Other status codes are Step implementation-specific.

import sys

import stpipe
from stpipe import Step
from stpipe.exceptions import StpipeExitException
from stpipe.cli.main import _print_versions


if __name__ == "__main__":
if "--version" in sys.argv:
sys.stdout.write(f"{stpipe.__version__}\n")
_print_versions()
sys.exit(0)

try:
Expand Down

0 comments on commit faa5460

Please sign in to comment.