From c3e78655bf192d79b5cb675997b879ea2c7e93e0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 1 Jan 2013 16:43:51 -0500 Subject: [PATCH] update-copyright.py: add --version --- bin/update-copyright.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/update-copyright.py b/bin/update-copyright.py index df66d61..2482cb9 100755 --- a/bin/update-copyright.py +++ b/bin/update-copyright.py @@ -34,6 +34,7 @@ file in your project root. import logging as _logging import os.path as _os_path +from update_copyright import __version__ from update_copyright import LOG as _LOG from update_copyright.project import Project @@ -43,6 +44,9 @@ if __name__ == '__main__': import sys p = argparse.ArgumentParser(description=__doc__) + p.add_argument( + '--version', action='version', + version='%(prog)s {}'.format(__version__)) p.add_argument( '--config', dest='config', default='.update-copyright.conf', metavar='PATH', help='path to project config file') -- 2.26.2