Skip to content

Commit

Permalink
Version prints only version w/o prog
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Apr 16, 2021
1 parent 74746c0 commit 656769a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chrisapp/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def __init__(self):
help='save output meta data to a JSON file')

ArgumentParser.add_argument(self, '--version', action='version',
version='%(prog)s ' + self.get_version())
version=self.get_version())
ArgumentParser.add_argument(self, '--meta', action=AppMetaDataAction,
dest='meta', default=False,
help='print app meta data and exit')
Expand Down Expand Up @@ -499,7 +499,7 @@ def load_output_meta(self):
with open(file_path) as infile:
return json.load(infile)

def get_version(self):
def get_version(self) -> str:
"""
Return the app's version.
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name = 'chrisapp',
version = '2.5.1',
version = '2.5.2',
description = 'Superclass for Chris plugin apps',
long_description = readme,
author = 'FNNDSC',
Expand Down

0 comments on commit 656769a

Please sign in to comment.