Consolidate enable/disable help together to get a more concise help output #1613
There is a huge amount of output to go through in the stack help. It is hard to navigate unless you are intimately familiar with it. Someone new to stack might find it intimidating. Here is a sample output:
We can do better by making it more concise.
This will reduce the 29 items of options help to 22:
Not sure if this will require changes to optparse.
See also #1333 for a related issue to reduce the amount of help output.
The text was updated successfully, but these errors were encountered:
I did some work in this direction a while ago to try to only have to show the non-default option but hit a snag: we currently have to parse the command-line before reading the config file, but we don't know the defaults until the config file has been read. It may be possible to find a way around that and get this working (related: #893).
Another approach could be to make these options look like:
I think we'd have to make the real
A pull request would be welcome.
Per issue commercialhaskell#1613, enable/disable flags now occupy 1 line in help output. Summary: - Simplified `enableDisableNoDefault` logic as hiding is no longer specified manually. - Helper function `enableDisableNoDefault'` no longer seemed necessary after simplification, removed it. - Fixed issues caused by removing the show/hide argument - Created "dummy" extra flag with appropriate help message Issue: dummy argmuent actually acts as a real flag, which seems bad. `<*` was causing the hidden actual flags to be dropped by opt-parse. Ideally this would cause the standard unknown command behavior.