Mercurial > hgrepos > Python > apps > py-cutils
changeset 27:c29bd96dcd4f
Put the HG revision into the version output also
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 07 Dec 2020 02:52:30 +0100 |
| parents | ea4bb192c437 |
| children | ffe2d6320f2e |
| files | shasum.py |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/shasum.py Mon Dec 07 02:47:35 2020 +0100 +++ b/shasum.py Mon Dec 07 02:52:30 2020 +0100 @@ -15,6 +15,9 @@ __version__ = "0.1" +__revision__ = "|VCSRevision|" +__date__ = "|VCSJustDate|" + import argparse import hashlib @@ -73,7 +76,7 @@ "--text", "-t", action="store_true", dest="text_mode", default=False, help="read in text mode (not supported)") aparser.add_argument( - "--version", "-v", action="version", version=__version__) + "--version", "-v", action="version", version="%s (rv:%s)" % (__version__, __revision__)) aparser.add_argument( "files", nargs="*", metavar="FILE")
