From 07880ca4415009d7a151d262bc5ac62f8b6dc719 Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Thu, 9 May 2024 13:39:21 +0200 Subject: chore: Update flags to include long-form options for case (#3785) --- src/options.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/options.go b/src/options.go index 5a4a9530..83b0e97f 100644 --- a/src/options.go +++ b/src/options.go @@ -22,8 +22,8 @@ const Usage = `usage: fzf [options] -x, --extended Extended-search mode (enabled by default; +x or --no-extended to disable) -e, --exact Enable Exact-match - -i Case-insensitive match (default: smart-case match) - +i Case-sensitive match + -i, --ignore-case Case-insensitive match (default: smart-case match) + +i, --no-ignore-case Case-sensitive match --scheme=SCHEME Scoring scheme [default|path|history] --literal Do not normalize latin script letters before matching -n, --nth=N[,..] Comma-separated list of field index expressions @@ -1914,9 +1914,9 @@ func parseOptions(opts *Options, allArgs []string) error { opts.Tac = true case "--no-tac": opts.Tac = false - case "-i": + case "-i", "--ignore-case": opts.Case = CaseIgnore - case "+i": + case "+i", "--no-ignore-case": opts.Case = CaseRespect case "-m", "--multi": if opts.Multi, err = optionalNumeric(allArgs, &i, maxMulti); err != nil { -- cgit v1.2.3