Skip to content

argx: fix command naming and improve help text formatting#455

Open
Alex-Manson-Aiven wants to merge 1 commit into
mainfrom
alex-manson-support-py314
Open

argx: fix command naming and improve help text formatting#455
Alex-Manson-Aiven wants to merge 1 commit into
mainfrom
alex-manson-support-py314

Conversation

@Alex-Manson-Aiven
Copy link
Copy Markdown

  • 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

@Alex-Manson-Aiven Alex-Manson-Aiven force-pushed the alex-manson-support-py314 branch 6 times, most recently from 8ad8c3a to df20f7c Compare May 11, 2026 20:18
- 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
@Alex-Manson-Aiven Alex-Manson-Aiven force-pushed the alex-manson-support-py314 branch from df20f7c to e994dd5 Compare May 11, 2026 20:22
@Alex-Manson-Aiven Alex-Manson-Aiven marked this pull request as ready for review May 11, 2026 20:34
@Alex-Manson-Aiven Alex-Manson-Aiven requested review from a team as code owners May 11, 2026 20:34
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 this pull request may close these issues.

1 participant