From: W. Trevor King Date: Tue, 1 Jan 2013 21:43:51 +0000 (-0500) Subject: update-copyright.py: add --version X-Git-Tag: v0.5~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3e78655bf192d79b5cb675997b879ea2c7e93e0;p=update-copyright.git update-copyright.py: add --version --- 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')