diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-14 19:41:34 +0800 |
---|---|---|
committer | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-14 19:41:34 +0800 |
commit | c10be0f34175823a7c20155f11639a6773f9e24f (patch) | |
tree | 30d362bd3e14c89672467988b9def220f5c4798d | |
parent | ac7267ba555ca204e8d1f9dda176a3889842f23b (diff) | |
download | smartypants-c10be0f34175823a7c20155f11639a6773f9e24f.tar.gz |
add --version
-rw-r--r-- | CHANGES.rst | 3 | ||||
-rwxr-xr-x | smartypants | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 944a203..934fdd0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,9 @@ Versions without timestamps mean they are future releases. 2.0.0: - drop Pyblosxom support +development: + - add ``--version`` + 1.7.1: 2013-08-14T06:45:59Z - fix README-PyPI.rst missing while installing diff --git a/smartypants b/smartypants index 67adfdc..f02a785 100755 --- a/smartypants +++ b/smartypants @@ -11,7 +11,8 @@ import smartypants def main(): - parser = argparse.ArgumentParser(description='SmartyPants in Python') + parser = argparse.ArgumentParser(description=smartypants.__description__, + version=smartypants.__version__) parser.add_argument('-a', '--attr', default=smartypants.default_smartypants_attr, help='processing attributes (Default: %(default)s)') |