summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-01 10:57:49 +0100
committerhut <hut@lavabit.com>2013-03-01 10:57:49 +0100
commitab67be4fee838f2093d0853eb4e82b73816cb363 (patch)
tree2a6df0efa34af824a95adc219a6a5530d2890147
parentd7d2b7dd1d597b5ac9c2162921ad858ccb306279 (diff)
downloadranger-ab67be4fee838f2093d0853eb4e82b73816cb363.tar.gz
rifle: added --version option
-rw-r--r--doc/rifle.12
-rwxr-xr-xranger/ext/rifle.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/rifle.1 b/doc/rifle.1
index 2cfaed65..87578c4c 100644
--- a/doc/rifle.1
+++ b/doc/rifle.1
@@ -124,7 +124,7 @@
 .\" ========================================================================
 .\"
 .IX Title "RIFLE 1"
-.TH RIFLE 1 "rifle-1.5.5" "02/18/2013" "rifle manual"
+.TH RIFLE 1 "rifle-1.6.0" "03/01/2013" "rifle manual"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
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.")