Skip to content

Commit

Permalink
Merge pull request #139 from fls-bioinformatics-core/md5checker.py-fi…
Browse files Browse the repository at this point in the history
…x-version-command-line-option

md5checker.py: fix --version command line option for Python3
  • Loading branch information
pjbriggs committed Sep 13, 2019
2 parents 044f9b4 + 7dfc63b commit a8ed769
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/md5checker.py
Expand Up @@ -22,7 +22,7 @@
# Module metadata
#######################################################################

__version__ = "0.4.2"
__version__ = "0.4.3"

#######################################################################
# Import modules that this module depends on
Expand Down Expand Up @@ -221,11 +221,12 @@ def report(msg,verbose=False):
%(prog)s -c CHKSUM_FILE"""
p = argparse.ArgumentParser(
usage=usage,
version="%(prog)s "+__version__,
description=
"Compute and verify MD5 checksums for files and directories.")

# Define options
p.add_argument('--version',action='version',
version="%(prog)s "+__version__)
p.add_argument('-d','--diff',action="store_true",dest="diff",
default=False,
help="for two directories: check that contents of "
Expand Down

0 comments on commit a8ed769

Please sign in to comment.