summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-06-19 01:03:25 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-06-19 01:03:25 +0900
commit3492c8b780e3082946903d4b8e7b566e2c3e662c (patch)
treed6ac5e2c80bbe420318596f255ab032892a9ed5b /src
parenta8b2c257cdd51181bec67eca80c7879787c49776 (diff)
downloadfzf-3492c8b780e3082946903d4b8e7b566e2c3e662c.tar.gz
Rename --history-max to --history-size
Considering HISTSIZE and HISTFILESIZE of bash
Diffstat (limited to 'src')
-rw-r--r--src/options.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options.go b/src/options.go
index a3b7cc84..de3f18e3 100644
--- a/src/options.go
+++ b/src/options.go
@@ -44,7 +44,7 @@ const usage = `usage: fzf [options]
--toggle-sort=KEY Key to toggle sort
--bind=KEYBINDS Custom key bindings. Refer to the man page.
--history=FILE History file
- --history-max=N Maximum number of history entries (default: 1000)
+ --history-size=N Maximum number of history entries (default: 1000)
Scripting
-q, --query=STR Start the finder with the given query
@@ -698,7 +698,7 @@ func parseOptions(opts *Options, allArgs []string) {
opts.History = nil
case "--history":
setHistory(nextString(allArgs, &i, "history file path required"))
- case "--history-max":
+ case "--history-size":
setHistoryMax(nextInt(allArgs, &i, "history max size required"))
case "--version":
opts.Version = true
@@ -731,7 +731,7 @@ func parseOptions(opts *Options, allArgs []string) {
parseKeymap(keymap, opts.Execmap, opts.ToggleSort, value)
} else if match, value := optString(arg, "--history="); match {
setHistory(value)
- } else if match, value := optString(arg, "--history-max="); match {
+ } else if match, value := optString(arg, "--history-size="); match {
setHistoryMax(atoi(value))
} else {
errorExit("unknown option: " + arg)