-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
[>=1.9.1] Fix output for --help
#236
Conversation
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.
Hi @nehaljwani,
I confirm the issue, even with Python 3.9. For the fix, it is not clear to me why use of RawTextHelpFormatter
is part of the fix when all I need locally is this:
--- a/src/ansi2html/converter.py
+++ b/src/ansi2html/converter.py
@@ -769,7 +769,7 @@ def main() -> None:
default="ansi2html",
choices=scheme_names,
help=(
- "Specify color palette scheme. Default: %%default. Choices: %s"
+ "Specify color palette scheme. Default: '%%(default)s'. Choices: %s"
% scheme_names
),
)
If you can make it that fix, I can merge it in no time.
Regarding RawTextHelpFormatter
, please help me understand the idea. Even with the new formatter, the choices line is very long. Maybe let's separate fixing a crash from further improving the output.
Thanks!
Hi @hartwork, I've updated the PR with the proposed fix. |
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.
@nehaljwani thank you!
Could this fix be uploaded to pypi.org? The last version is 1.9.1 from Dec 11, 2023 |
@phlummox I lack permissions to…
…but it seems I can…
With that it seems I managed to release 1.9.2 to both PyPI (through GitHub Actions) and GitHub releases now. I should not that workflow …because the referenced target… ansi2html/.github/workflows/push.yml Line 13 in a3a93a6
…apparently no longer exists at that location. If you can help with a pull request to repair, I may be able to approve and merge it. Any chance? |
The output for
--help
after #205 started to error out:With this patch, the output is sane: