diff --git a/src/options.go b/src/options.go index 7e626f6..1fdded3 100644 --- a/src/options.go +++ b/src/options.go @@ -1746,6 +1746,13 @@ func postProcessOptions(opts *Options) { func ParseOptions() *Options { opts := defaultOptions() + for _, arg := range os.Args[1:] { + if arg == "--version" { + opts.Version = true + return opts + } + } + // Options from Env var words, _ := shellwords.Parse(os.Getenv("FZF_DEFAULT_OPTS")) if len(words) > 0 {