We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While rich markup is supported by help messages, it is not used when printing the version instead, it's just a straight call to print
cyclopts/cyclopts/core.py
Lines 385 to 387 in 2fcef8f
I was able to work around this using the following based on help_print to override version_print:
help_print
version_print
class App(cyclopts.App): def version_print(self) -> None: """Print the application version.""" console = self._resolve_console(None, None) console.print(self.version() if callable(self.version) else self.version)
from help_print, I just used the defaults for parameters tokens and console from help_print's singuature:
tokens
console
Lines 849 to 856 in 2fcef8f
The text was updated successfully, but these errors were encountered:
thanks for the report! I'll open up a PR integrating these changes.
Sorry, something went wrong.
resolved in #188
No branches or pull requests
While rich markup is supported by help messages, it is not used when printing the version instead, it's just a straight call to print
cyclopts/cyclopts/core.py
Lines 385 to 387 in 2fcef8f
I was able to work around this using the following based on
help_print
to overrideversion_print
:from
help_print
, I just used the defaults for parameterstokens
andconsole
fromhelp_print
's singuature:cyclopts/cyclopts/core.py
Lines 849 to 856 in 2fcef8f
The text was updated successfully, but these errors were encountered: