haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

Redesign option parsing for main executable #1578

Closed fendor closed 4 years ago

fendor commented 4 years ago

With #1569, we introduced two additional flags that do not compose with the --lsp flag, yet you can pass them all to the executable and nothing complains about that. I think we should redesign the options to reflect the two different modes that are currently implemented: lsp-server and project-loading. Most important restriction: Synopsis and name of the used flags must not change in a backwards incompatible manner. E.g., the following flags must be possible to use together: --lsp, --debug, -l log.file and --vomit.