-
Notifications
You must be signed in to change notification settings - Fork 722
cabal-install: Add newline at end of 'cabal target --help' output #11472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
I am not saying this is wrong, but |
ulysses4ever
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked that other commands' notes have \n's (at least, CmdRun.hs).
|
@ffaf1 the updated text is a part of the help message, it seems. @tomsmeding I just tried |
|
I've seen discrepancies regarding newlines because of the shell I use (fish). I checked in bash, and, indeed, target's help has one less newline than run's help. So, I assume it's a good change that makes things more uniform. |
|
You do not have to depend on your shell to test this. Use e.g. EDIT: Note that your shell prompt may include newlines! |
|
@ulysses4ever Specifically in your case, |

cabal targetseems to be the firstcabal-installcommand that uses a prettyprinter for its--helpoutput. This is all very nice, but you do need to add your own newline if you do so. :)Template B: This PR does not modify behaviour or interface