From da69e15efb2449414b7f0efb22eb1786d4d4bada Mon Sep 17 00:00:00 2001 From: William Ting Date: Fri, 14 Dec 2012 20:52:03 -0600 Subject: [PATCH] add shorthand shortcut -v for --version --- bin/autojump | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/autojump b/bin/autojump index 6861030..05d605c 100755 --- a/bin/autojump +++ b/bin/autojump @@ -34,7 +34,7 @@ import re import shutil from tempfile import NamedTemporaryFile -VERSION = 'release-v21.1.3' +VERSION = 'release-v21.1.4' MAX_KEYWEIGHT = 1000 MAX_STORED_PATHS = 1000 COMPLETION_SEPARATOR = '__' @@ -231,7 +231,7 @@ def options(): help='delete all database entries that no longer exist on system') parser.add_argument('-s', '--stat', action="store_true", default=False, help='show database entries and their key weights') - parser.add_argument('--version', action="version", version="%(prog)s " + VERSION, + parser.add_argument('-v', '--version', action="version", version="%(prog)s " + VERSION, help='show version information and exit') ARGS = parser.parse_args()