| skipped 1745 lines |
1746 | 1746 | | func ParseOptions() *Options { |
1747 | 1747 | | opts := defaultOptions() |
1748 | 1748 | | |
| 1749 | + | for _, arg := range os.Args[1:] { |
| 1750 | + | if arg == "--version" { |
| 1751 | + | opts.Version = true |
| 1752 | + | return opts |
| 1753 | + | } |
| 1754 | + | } |
| 1755 | + | |
1749 | 1756 | | // Options from Env var |
1750 | 1757 | | words, _ := shellwords.Parse(os.Getenv("FZF_DEFAULT_OPTS")) |
1751 | 1758 | | if len(words) > 0 { |
| skipped 10 lines |