Skip to content

Commit

Permalink
have --version ONLY print the version number
Browse files Browse the repository at this point in the history
Make --version much less verbose and only print out the version number
to facilitate easy parsing by scripts. We don't really need the verbose
copyright output, it is show with --help anyway.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
  • Loading branch information
spaetz authored and nicolas33 committed Jan 27, 2011
1 parent fa60f3f commit 776b517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog.draft.rst
Expand Up @@ -16,6 +16,8 @@ New Features
Changes
-------

* have --version ONLY print the version number

Bug Fixes
---------

Expand Down
2 changes: 1 addition & 1 deletion offlineimap/init.py
Expand Up @@ -60,7 +60,7 @@ def lock(self, config, ui):
def run(self):
"""Parse the commandline and invoke everything"""

parser = OptionParser(version=offlineimap.banner,
parser = OptionParser(version=offlineimap.__version__,
description="%s.\n\n%s" %
(offlineimap.__copyright__,
offlineimap.__license__))
Expand Down

0 comments on commit 776b517

Please sign in to comment.