diff options
author | hut <hut@lavabit.com> | 2013-03-01 10:57:49 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-03-01 10:57:49 +0100 |
commit | ab67be4fee838f2093d0853eb4e82b73816cb363 (patch) | |
tree | 2a6df0efa34af824a95adc219a6a5530d2890147 /ranger | |
parent | d7d2b7dd1d597b5ac9c2162921ad858ccb306279 (diff) | |
download | ranger-ab67be4fee838f2093d0853eb4e82b73816cb363.tar.gz |
rifle: added --version option
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/ext/rifle.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index fc3a7de6..61961c16 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -19,6 +19,8 @@ import re from subprocess import Popen, PIPE import sys +__version__ = 'rifle 1.6.0' + # Options and constants that a user might want to change: DEFAULT_PAGER = 'less' DEFAULT_EDITOR = 'nano' @@ -383,7 +385,7 @@ def main(): # Evaluate arguments from optparse import OptionParser - parser = OptionParser(usage="%prog [-fhlpw] [files]") + parser = OptionParser(usage="%prog [-fhlpw] [files]", version=__version__) parser.add_option('-f', type="string", default="", metavar="FLAGS", help="use additional flags: f=fork, r=root, t=terminal. " "Uppercase flag negates respective lowercase flags.") |