Commits

Yu-Jie Lin  committed a7f334f

add --version option

  • Participants
  • Parent commits ec0a96b

Comments (0)

Files changed (2)

 
 ## Development
 
+ * add `--version` option
+
 ## Version 0.1.2 (2013-02-23T06:08:12Z)
 
  * [base] add `local_html` for checking local fragment
 from os import path
 import sys
 
+from lnkckr import __version__
 from lnkckr.checkers import checkers
 
 
   parser.add_argument('-s', '--status',
                       help=('re-check links with status. '
                             'Valid values: all, HTTP status code'))
+  parser.add_argument('--version', action='version',
+                      version='%(prog)s ' + __version__)
   args = parser.parse_args()
 
   for checker in checkers: