mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
add shorthand shortcut -v for --version
This commit is contained in:
parent
b829fd5a4a
commit
da69e15efb
@ -34,7 +34,7 @@ import re
|
|||||||
import shutil
|
import shutil
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
|
|
||||||
VERSION = 'release-v21.1.3'
|
VERSION = 'release-v21.1.4'
|
||||||
MAX_KEYWEIGHT = 1000
|
MAX_KEYWEIGHT = 1000
|
||||||
MAX_STORED_PATHS = 1000
|
MAX_STORED_PATHS = 1000
|
||||||
COMPLETION_SEPARATOR = '__'
|
COMPLETION_SEPARATOR = '__'
|
||||||
@ -231,7 +231,7 @@ def options():
|
|||||||
help='delete all database entries that no longer exist on system')
|
help='delete all database entries that no longer exist on system')
|
||||||
parser.add_argument('-s', '--stat', action="store_true", default=False,
|
parser.add_argument('-s', '--stat', action="store_true", default=False,
|
||||||
help='show database entries and their key weights')
|
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')
|
help='show version information and exit')
|
||||||
|
|
||||||
ARGS = parser.parse_args()
|
ARGS = parser.parse_args()
|
||||||
|
Loading…
Reference in New Issue
Block a user