From 8270f7f0cadf14c76feaadfb4068ccdf599a25e8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 21 Jun 2015 17:29:58 +0900 Subject: Rename --null to --read0 and undocument the option `--null` is ambiguous. For completeness' sake, we need both `--read0` and `--print0`. `--read0` only makes sense when the input contains multiline entries. However, fzf currently cannot correctly display multiline entries, I'm going to make `--read0` an undocumented feature. --- src/options.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/options.go b/src/options.go index 4fa7cc8f..55e0543c 100644 --- a/src/options.go +++ b/src/options.go @@ -50,7 +50,6 @@ const usage = `usage: fzf [options] -1, --select-1 Automatically select the only match -0, --exit-0 Exit immediately when there's no match -f, --filter=STR Filter mode. Do not start interactive finder. - --null Read null-byte separated strings from input --print-query Print query as the first line --expect=KEYS Comma-separated list of keys to complete fzf --sync Synchronous search for multi-staged filtering @@ -679,8 +678,10 @@ func parseOptions(opts *Options, allArgs []string) { opts.Exit0 = true case "+0", "--no-exit-0": opts.Exit0 = false - case "--null": + case "--read0": opts.ReadZero = true + case "--no-read0": + opts.ReadZero = false case "--print-query": opts.PrintQuery = true case "--no-print-query": -- cgit v1.2.3