Skip to content

Commit

Permalink
Print out jwst or romancal versions from strun --version (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson authored Aug 23, 2023
2 parents e84c2c2 + 6527e23 commit 0b1b368
Show file tree
Hide file tree
Showing 2 changed files with 3 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
4 changes: 2 additions & 2 deletions scripts/strun
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Other status codes are Step implementation-specific.

import sys

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

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 0b1b368

Please sign in to comment.