Permalink
Browse files

Tell optparse the version

  • Loading branch information...
1 parent 07da838 commit 7b8652642a637b6999c46ab3add8cc87dd83e1a6 @stefanor stefanor committed Feb 26, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 html2text.py
View
@@ -452,7 +452,8 @@ def html2text(html, baseurl=''):
if __name__ == "__main__":
baseurl = ''
- p = optparse.OptionParser('%prog [(filename|url) [encoding]]')
+ p = optparse.OptionParser('%prog [(filename|url) [encoding]]',
+ version='%prog ' + __version__)
args = p.parse_args()[1]
if len(args) > 0:
file_ = args[0]

0 comments on commit 7b86526

Please sign in to comment.