Skip to content
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

ogrinfo usage message not coordinated with man page #11692

Closed
jidanni opened this issue Jan 20, 2025 · 3 comments · Fixed by #11697
Closed

ogrinfo usage message not coordinated with man page #11692

jidanni opened this issue Jan 20, 2025 · 3 comments · Fixed by #11697
Assignees

Comments

@jidanni
Copy link
Contributor

jidanni commented Jan 20, 2025

What is the bug?

ogrinfo usage message

  • contains items not mentioned on the man page, like -summary
  • lines that go off the screen, even 100 character wide screens.

Steps to reproduce the issue

Test with ogrinfo --zzzz

Versions and provenance

GDAL 3.10.1, released 2025/01/08

@jratike80
Copy link
Collaborator

First: Seems to be out-of-sync, -summary documented still as -so https://gdal.org/en/stable/programs/ogrinfo.html#cmdoption-ogrinfo-so
Second: Are you using Linux or Windows? On Windows the lines do not go off the screen. Lines are dynamically split but the text continues on the next line and no characters are lost.

Image

That is standard behavior on Windows. Test by running any windows command with help switch and making the window narrow . However, long help texts of the Windows commands are usually hardcoded to split on several lines. Lines have about 80 characters at maximum.

@jidanni
Copy link
Contributor Author

jidanni commented Jan 20, 2025

Emacs -nw on Linux:
Image
Wrapping is bad enough. And many people would have truncated them instead of wrapping,
https://emacs.stackexchange.com/questions/51989/how-to-truncate-lines-by-default

@jratike80
Copy link
Collaborator

I tried to find some example and Linux sed https://github.com/mirror/sed/blob/master/sed/sed.c formats longer help texts this way

fprintf (out, _("  -u, --unbuffered\n\
                 load minimal amounts of data from the input files and flush\n\
                 the output buffers more often\n"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants