You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi. Sure we can think of some kind of text AST structure to allow hooking into and modifying the output 👍🏼
In the rolldown use case, we would like to customize only the header.
I want to investigate this first although. Can you share the desired header change? If it is more beautiful, i am up to simply update the default usage to it so not going to the customization path :)
I want to investigate this first although. Can you share the desired header change? If it is more beautiful, i am up to simply update the default usage to it so not going to the customization path :)
Originally posted by @pi0 in #135 (comment)
The
showUsage
currently provided can be customized with own customizedshowUsage
inrunMain
, but there is no way to customize the built-inshowUsage
that citty has.The
showUsage
renders the following parts viarenderUsage
.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.
The text was updated successfully, but these errors were encountered: