Description
This issue is to collect feedback before making the change.
I am thinking about making rich markup opt-in instead of opt-out. This of course would require a major version bump so I am thinking of making it part of the 2.0 release.
There has been at least one person asking for markup to be disabled by default #120 (comment). I find the arguments presented in that discussion convincing but couldn't change the default at the time as it would be a breaking change.
Long term, it would be a better user experience if rich-argparse behavior matches exactly that of argparse (except for the colors). This is especially useful for these two scenarios:
- Large projects that adopt rich-argparse where it would be easy to miss a few square brackets in the help strings
- Projects that would offer optional rich-argparse support and fallback to standard argparse if rich-argparse is not installed
I am not sure if there should be a warning at runtime and how annoying it would be for users. It might be possible to detect the use of markup syntax and only issue a warning if markup is used while not explicitly activated.
As a reminder, RichHelpFormatter.help_markup = True
would activate markup for help strings and RichHelpFormatter.text_markup = True
would activate markup for descriptions/epilog.