diff options
author | hut <hut@lavabit.com> | 2010-08-28 21:27:43 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-08-28 21:27:43 +0200 |
commit | 0df1d653deb7a9a8ca30f012475891e339b4449f (patch) | |
tree | cc56d9916bb66029280c8fd2a1d96ca976202aca /ranger | |
parent | bd33933dd1cb708a5e708b361c1842190a1c9e4b (diff) | |
download | ranger-0df1d653deb7a9a8ca30f012475891e339b4449f.tar.gz |
Changed version number to 1.2 (testing) to adhere with versioning scheme
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/__init__.py | 2 | ||||
-rw-r--r-- | ranger/__main__.py | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ranger/__init__.py b/ranger/__init__.py index 57e0e5a2..282fd2b1 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -20,7 +20,7 @@ import sys from ranger.ext.openstruct import OpenStruct __license__ = 'GPL3' -__version__ = '1.1.2' +__version__ = '1.2' __credits__ = 'Roman Zimbelmann' __author__ = 'Roman Zimbelmann' __maintainer__ = 'Roman Zimbelmann' diff --git a/ranger/__main__.py b/ranger/__main__.py index 28284ef5..5a8411d6 100644 --- a/ranger/__main__.py +++ b/ranger/__main__.py @@ -30,7 +30,14 @@ def parse_arguments(): from optparse import OptionParser, SUPPRESS_HELP from ranger import __version__, USAGE, DEFAULT_CONFDIR from ranger.ext.openstruct import OpenStruct - parser = OptionParser(usage=USAGE, version='ranger ' + __version__) + + minor_version = __version__[2:] # assumes major version number is <10 + if '.' in minor_version: + minor_version = minor_version[:minor_version.find('.')] + version_tag = ' (stable)' if int(minor_version) % 2 == 1 else ' (testing)' + version_string = 'ranger ' + __version__ + version_tag + + parser = OptionParser(usage=USAGE, version=version_string) parser.add_option('-d', '--debug', action='store_true', help="activate debug mode") |