diff options
author | hut <hut@lavabit.com> | 2012-06-16 23:41:34 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-06-16 23:41:34 +0200 |
commit | a95218b1a3f06f6928b8bd643f755bad7dce011d (patch) | |
tree | 785b131032ef1c79e7cd82c42cb058d152606f4c /ranger | |
parent | acd8c78be0dcf8a7057996991d9c16a28a5b13ff (diff) | |
download | ranger-a95218b1a3f06f6928b8bd643f755bad7dce011d.tar.gz |
core.helper: more useful --version output
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/__init__.py | 2 | ||||
-rw-r--r-- | ranger/core/helper.py | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/ranger/__init__.py b/ranger/__init__.py index 9247a121..a740c18a 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -25,7 +25,7 @@ MACRO_DELIMITER = '%' DEFAULT_PAGER = 'less' LOGFILE = '/tmp/ranger_errorlog' USAGE = '%prog [options] [path/filename]' -STABLE = False +VERSION = 'ranger-git based on %s' % __version__ # If the environment variable XDG_CONFIG_HOME is non-empty, CONFDIR is ignored # and the configuration directory will be $XDG_CONFIG_HOME/ranger instead. diff --git a/ranger/core/helper.py b/ranger/core/helper.py index 233f1b8a..2487875d 100644 --- a/ranger/core/helper.py +++ b/ranger/core/helper.py @@ -6,7 +6,7 @@ from errno import EEXIST import os.path import sys -from ranger import CONFDIR, USAGE, STABLE, __version__ +from ranger import CONFDIR, USAGE, VERSION def parse_arguments(): """Parse the program arguments""" @@ -19,8 +19,7 @@ def parse_arguments(): else: default_confdir = CONFDIR - parser = OptionParser(usage=USAGE, version='ranger %s%s' \ - % (__version__, " (stable)" if STABLE else "")) + parser = OptionParser(usage=USAGE, version=VERSION) parser.add_option('-d', '--debug', action='store_true', help="activate debug mode") |