Skip to content

Commit

Permalink
Merge pull request #79 from maikefischer/master
Browse files Browse the repository at this point in the history
Added the version to the CLI
  • Loading branch information
benkrikler authored Oct 4, 2019
2 parents 423d4c2 + e650c1a commit 9357133
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.14.1] - 2019-10-04
### Added
- Added version flag to CLI, PR #79. [@maikefischer](github.com/maikefischer)
- Prohibit ncores < 1, PR #76 [@annakau](https://github.com/annakau)

### Changed
Expand Down
2 changes: 2 additions & 0 deletions fast_carpenter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .event_builder import EventBuilder
from atsge.build_parallel import build_parallel
from .utils import mkdir_p
from .version import __version__
atup.EventBuilder = EventBuilder
atup.build_parallel = build_parallel
logging.getLogger(__name__).setLevel(logging.INFO)
Expand Down Expand Up @@ -56,6 +57,7 @@ def __call__(self, parser, namespace, values, option_string=None):
help="Print help specific to the available stages")
parser.add_argument("--help-stages-full", action=StagesHelp, metavar="stage",
help="Print the full help specific to the available stages")
parser.add_argument("-v", "--version", action="version", version='%(prog)s ' + __version__)

return parser

Expand Down

0 comments on commit 9357133

Please sign in to comment.