Currently, help text wrapping is always enabled. If the terminal width can be obtained via ioctl, wrapping is done to the screen width; otherwise, it wraps at 80 characters. However, 80 characters is no longer a common standard, and this behavior is not ideal, especially when embedding help output into documentation such as README.md. I would like a way to disable wrapping or otherwise control the wrapping behavior.
Relevant files:
As a workaround, to automate embedding help output, I am currently not just running --help directly, but executing it inside a script command.
FYI: apstndb/spanner-mycli/README.md
Currently, help text wrapping is always enabled. If the terminal width can be obtained via
ioctl, wrapping is done to the screen width; otherwise, it wraps at 80 characters. However, 80 characters is no longer a common standard, and this behavior is not ideal, especially when embedding help output into documentation such asREADME.md. I would like a way to disable wrapping or otherwise control the wrapping behavior.Relevant files:
help.gotermsize_defaults.goAs a workaround, to automate embedding help output, I am currently not just running
--helpdirectly, but executing it inside ascriptcommand.FYI:
apstndb/spanner-mycli/README.md