Skip to content

Conversation

@nats
Copy link
Contributor

@nats nats commented Jan 13, 2026

Summary

  • Fix argparse formatting error when help text contains literal % characters (e.g., "100%")
  • Override _get_help_string in CommandHelpFormatter to escape % as %% while preserving valid %(...)s format specifiers

Resolves the issue where bl server alert get --help would crash with:

TypeError: %i format: a real number is required, not dict

Help text containing literal % characters (e.g., "100%") caused argparse
formatting errors because % is interpreted as a format specifier.

Override _get_help_string in CommandHelpFormatter to escape % as %%
while preserving valid %(...)s format specifiers like %(choices)s.
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