Skip to content

Commit

Permalink
Merge pull request #42 from liz-is/fix-version
Browse files Browse the repository at this point in the history
"chess --version" now works correctly
  • Loading branch information
nickmachnik committed Mar 3, 2021
2 parents 79145e5 + d467dfc commit e6381ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions chess/commands.py
Expand Up @@ -22,12 +22,8 @@ def chess_parser():
usage=textwrap.dedent(usage)
)

parser.add_argument(
'--version', dest='print_version',
action='store_true',
help='Print version information'
)
parser.set_defaults(print_version=False)
from .version import __version__
parser.add_argument('--version', action='version', version=f'CHESS {__version__}')

parser.add_argument(
'--verbose', '-v', dest='verbosity',
Expand Down
2 changes: 1 addition & 1 deletion chess/version.py
@@ -1 +1 @@
__version__ = '0.3.6'
__version__ = '0.3.7'

0 comments on commit e6381ad

Please sign in to comment.