argx: fix command naming and improve help text formatting#455
Open
Alex-Manson-Aiven wants to merge 1 commit into
Open
argx: fix command naming and improve help text formatting#455Alex-Manson-Aiven wants to merge 1 commit into
Alex-Manson-Aiven wants to merge 1 commit into
Conversation
Alex-Manson-Aiven
commented
May 11, 2026
- Fix name_to_cmd_parts to convert single underscores to dashes instead of creating nested command hierarchy. Methods like command_with_option now become "command-with-option" instead of nested "command with-option"
- Escape literal % characters in help text for Python 3.14+ compatibility
- Add automatic (default: X) display for int, float, and non-empty strings
- Preserve user-provided %(default) format codes without escaping
- Add tests verifying command naming and help text behavior
8ad8c3a to
df20f7c
Compare
- Fix name_to_cmd_parts to convert single underscores to dashes instead of creating nested command hierarchy. Methods like command_with_option now become "command-with-option" instead of nested "command with-option" - Escape literal % characters in help text for Python 3.14+ compatibility - Add automatic (default: X) display for int, float, and non-empty strings - Preserve user-provided %(default) format codes without escaping - Add tests verifying command naming and help text behavior
df20f7c to
e994dd5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.