You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There isn't any newline in the version output. See clap-rs/clap#1960, clap-rs/clap#1972 which will actually (correctly) add new lines to the version output.
The reason hexyl is getting a newline on stderr is this: clap prints version for hexyl without the trailing newline (the PR I linked above isn't included in the clap version hexyl is built with). But then the eprint! in hexyl main calls the error formatting in clap which does a writeln! and so you get the newline in stderr.
For some reason the --help output is directed to stderr rather than stdout, so the issue isn't visible there.
Activity
sharkdp commentedon Mar 27, 2021
That is not intended, no. Thanks for reporting.
scimas commentedon Apr 23, 2021
There isn't any newline in the version output. See clap-rs/clap#1960, clap-rs/clap#1972 which will actually (correctly) add new lines to the version output.
The reason hexyl is getting a newline on
stderris this:clapprints version for hexyl without the trailing newline (the PR I linked above isn't included in the clap version hexyl is built with). But then theeprint!in hexyl main calls the error formatting in clap which does awriteln!and so you get the newline instderr.For some reason the
--helpoutput is directed tostderrrather thanstdout, so the issue isn't visible there.Fix sharkdp#131