If you can make an issue to explain or visually share some screenshot of desired output i can help to improve built-in showUsage usable for rolldown.
Originally posted by @pi0 in #135 (comment)
The showUsage currently provided can be customized with own customized showUsage in runMain, but there is no way to customize the built-in showUsage that citty has.
The showUsage renders the following parts via renderUsage.
- header (include, command name and versions)
- usage or sub command
- options
It would be useful to have a mechanism to custom render each of these parts, so that the logic of showUsage does not have to be reused.
In the rolldown use case, we would like to customize only the header.
Originally posted by @pi0 in #135 (comment)
The
showUsagecurrently provided can be customized with own customizedshowUsageinrunMain, but there is no way to customize the built-inshowUsagethat citty has.The
showUsagerenders the following parts viarenderUsage.It would be useful to have a mechanism to custom render each of these parts, so that the logic of
showUsagedoes not have to be reused.In the rolldown use case, we would like to customize only the header.