From a95218b1a3f06f6928b8bd643f755bad7dce011d Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 16 Jun 2012 23:41:34 +0200 Subject: core.helper: more useful --version output --- ranger/__init__.py | 2 +- 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") -- cgit 1.4.1-2-gfad0