-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
Add command line options for printing help (-h, --help) #1899
Conversation
Having commands for outputting help text from the compiler enables using help2man to generate a man page.
This already exists in that any unknown option will print out the help message. So for example,
results in
Is there a reason for needing the explicit command? |
The "Unrecognized option: --help" line confuses help2man. |
@krig makes sense |
Thanks for the contribution @krig! |
I forgot to tag this to add changelog entry. I manually added just now. |
Great, thank you! |
After this change, I'm seeing the following compile error locally: src/ponyc/main.c:104:5: error: string literal of length 4114 exceeds maximum length 4095 that ISO C99 compilers are
required to support [-Werror,-Woverlength-strings]
"ponyc [OPTIONS] <package directory>\n"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ We'll have to come up with a fix for this (by splitting the string literal into multiple parts) before the next release, so others with the same compiler settings as me can compile ponyc. EDIT: opened #1900 to address this. |
Having commands for outputting help text from the compiler
enables using help2man to generate a man page.