1
0
mirror of https://github.com/wting/autojump synced 2026-03-02 03:49:26 +00:00

Implements #126. Options passed to j will now be parsed. -s short option for

--stat added, jumpstat alias removed.

Options passed to the `j` function will now be passed on autojump. As a result,
directories beginning with `-` are no longer supported.

A -s short alias for --stat is added. Instead of using jumpstat, use `j --stat`
or `j -s` instead.
This commit is contained in:
William Ting
2012-05-27 11:24:49 -10:00
parent d194429782
commit 32566eb89d
6 changed files with 28 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ import shutil
import sys
from tempfile import NamedTemporaryFile
VERSION = 'release-v20-7'
VERSION = 'release-v20-8'
MAX_KEYWEIGHT = 1000
MAX_STORED_PATHS = 1000
COMPLETION_SEPARATOR = '__'
@@ -235,7 +235,7 @@ def options():
help='used for bash tab completion')
parser.add_argument('--purge', action="store_true", default=False,
help='delete all database entries that no longer exist on system')
parser.add_argument('--stat', action="store_true", default=False,
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,
help='show version information and exit')