<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fh="http://purl.org/syndication/history/1.0"><channel><title>rich-click | Blog</title><description>Richly rendered command line interfaces in Click.</description><link>https://ewels.github.io/</link><language>en</language><fh:complete/><atom:link rel="self" href="https://ewels.github.io/rich-click/latest/blog/rss.xml"/><item><title>A new website for rich-click</title><link>https://ewels.github.io/rich-click/latest/blog/new-website/</link><guid isPermaLink="true">https://ewels.github.io/rich-click/latest/blog/new-website/</guid><description>The rich-click docs now run on Astro Starlight, with two new Starlight plugins and terminal output as text from rich-codex.</description><pubDate>Mon, 16 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Today we launched a new website for &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; 🎉
It is built with &lt;a href=&quot;https://starlight.astro.build/&quot;&gt;Astro Starlight&lt;/a&gt; instead of MkDocs.
It’s beautiful, fast and modern.&lt;/p&gt;
&lt;p&gt;The site took a little time due to several detours, notably updates to &lt;a href=&quot;https://github.com/ewels/rich-codex&quot;&gt;rich-codex&lt;/a&gt; and the creation of two new Starlight plugins: &lt;a href=&quot;https://ewels.github.io/starlight-pydocs/&quot;&gt;Starlight Pydocs&lt;/a&gt; and &lt;a href=&quot;https://ewels.github.io/starlight-codeblocks/&quot;&gt;Starlight Codeblocks&lt;/a&gt;.
In this blog post I dive into what changed, and why.&lt;/p&gt;

&lt;p&gt;The main changes that you’ll be able to see in the new site are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A redesigned homepage which is hopefully more interesting to look at and that does a better job at conveying what &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; does.&lt;/li&gt;
&lt;li&gt;A new &lt;a href=&quot;../../documentation/quickstart/&quot;&gt;Quickstart&lt;/a&gt; page.&lt;/li&gt;
&lt;li&gt;Terminal output is now text, not screenshots. You can select it, search it and copy it, and it follows the light or dark theme.&lt;/li&gt;
&lt;li&gt;An auto-generated &lt;a href=&quot;../../api/rich_click/&quot;&gt;API reference&lt;/a&gt;, generated from the &lt;code dir=&quot;auto&quot;&gt;rich_click&lt;/code&gt; source. A badge on each object tells you which release added it.&lt;/li&gt;
&lt;li&gt;Names in code examples link to the Click, Rich and Typer docs, with a card that opens when you hover.&lt;/li&gt;
&lt;li&gt;Every page is also served as Markdown, and the site publishes &lt;code dir=&quot;auto&quot;&gt;llms.txt&lt;/code&gt;. You can give the docs to an AI assistant with one click.&lt;/li&gt;
&lt;/ul&gt;
&lt;figure&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/homepage.CpxqgE-g_ZboegI.webp&quot; alt=&quot;The new rich-click homepage: the logo and tagline on the left, and a terminal on the right showing rich-click help text, with buttons to switch colour scheme and format.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1440&quot; height=&quot;765&quot;&gt;&lt;figcaption&gt;&lt;p&gt;The new homepage. Pick a colour scheme and a format, and the terminal on the right updates. Psst: try clicking the
logo.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div&gt;&lt;h2 id=&quot;why-move-off-mkdocs&quot;&gt;Why move off MkDocs&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;https://www.mkdocs.org/&quot;&gt;MkDocs&lt;/a&gt; has had no maintainer since August 2024.
Its planned v2 drops support for existing themes, plugins and config files.
&lt;a href=&quot;https://squidfunk.github.io/mkdocs-material/&quot;&gt;Material for MkDocs&lt;/a&gt;, the theme we used, reaches &lt;a href=&quot;https://squidfunk.github.io/mkdocs-material/blog/2026/02/18/mkdocs-2.0/&quot;&gt;end of life&lt;/a&gt; on 5 November 2026.&lt;/p&gt;
&lt;p&gt;In August I moved the rich-click website to build using &lt;a href=&quot;https://properdocs.org/&quot;&gt;ProperDocs&lt;/a&gt;, a fork of MkDocs 1.x, in PR &lt;a href=&quot;https://github.com/ewels/rich-click/pull/341&quot;&gt;&lt;code dir=&quot;auto&quot;&gt;#341&lt;/code&gt;&lt;/a&gt;.
That kept the site building, but only really as a stopgap.
&lt;a href=&quot;https://zensical.org/&quot;&gt;Zensical&lt;/a&gt; is the official successor to Material for MkDocs, but it’s still at a fairly early stage of development and is missing functionality such as supporting blogs, our RSS feeds or custom plugins.&lt;/p&gt;
&lt;p&gt;I have been a big fan of &lt;a href=&quot;https://astro.build/&quot;&gt;Astro&lt;/a&gt; for a while now, including its official documentation theme, &lt;a href=&quot;https://starlight.astro.build/&quot;&gt;Starlight&lt;/a&gt;.
It’s fast and modern, with good developer tooling.
It looks good out of the box and has a lot of clever tricks with how it bundles outputs, resulting in exceptionally &lt;a href=&quot;https://starlight.astro.build/environmental-impact/&quot;&gt;eco-friendly&lt;/a&gt; websites: a first visit to a Starlight page typically downloads less than 50 KB of compressed data, about 2.5% of the median web page.&lt;/p&gt;
&lt;p&gt;On the same day as PR &lt;code dir=&quot;auto&quot;&gt;#341&lt;/code&gt;, I asked Claude to rebuild the whole site using Astro Starlight, with the same URLs, styles and features.
The first build was pretty decent:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Every page, blog post, redirect and old feed URL still resolved.&lt;/li&gt;
&lt;li&gt;Versioned deploys kept the &lt;code dir=&quot;auto&quot;&gt;gh-pages&lt;/code&gt; methodology that &lt;a href=&quot;https://github.com/jimporter/mike&quot;&gt;&lt;code dir=&quot;auto&quot;&gt;mike&lt;/code&gt;&lt;/a&gt; used. The 1.8 docs, built with MkDocs, stay as they are and stay in the version picker.&lt;/li&gt;
&lt;li&gt;A full build only takes about 15 seconds.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I opened the result as a proof of concept in &lt;a href=&quot;https://github.com/ewels/rich-click/pull/342&quot;&gt;#342&lt;/a&gt; and asked my &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; co-maintainer &lt;a href=&quot;https://github.com/dwreeves&quot;&gt;Daniel Reeves&lt;/a&gt; for his thoughts, with no plan to merge it soon.
He liked it, but had a few suggestions..&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;starlight-pydocs-api-docs-from-docstrings&quot;&gt;starlight-pydocs: API docs from docstrings&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Daniel had wanted API docs for a long time - we’d discussed it previously but never got around to putting the time in to figure them out.
On MkDocs the obvious tool is &lt;a href=&quot;https://mkdocstrings.github.io/&quot;&gt;mkdocstrings&lt;/a&gt;, but there was no Astro / Starlight equivalent.
To make matters worse, whilst MkDocs is built in Python, Astro / Starlight are NodeJS projects, requiring a totally different tool chain.
However, there was a glimpse of hope: in &lt;a href=&quot;https://github.com/ewels/rich-click/pull/342#issuecomment-5247648331&quot;&gt;his review&lt;/a&gt; he pointed out that mkdocstrings keeps its Python parsing in a separate library, &lt;a href=&quot;https://mkdocstrings.github.io/griffe/&quot;&gt;Griffe&lt;/a&gt;.
He suggested that a general Starlight plugin on top of Griffe could be a good open source project.
I was well and truly nerd-sniped 🎯&lt;/p&gt;
&lt;p&gt;Four days later I published &lt;a href=&quot;https://ewels.github.io/starlight-pydocs/&quot;&gt;starlight-pydocs&lt;/a&gt; 0.1.0, and the &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; branch had an API reference.
Like the site itself, I built it with Claude Code.
Claude first read how other Starlight plugins work, such as &lt;a href=&quot;https://starlight-openapi.vercel.app/&quot;&gt;starlight-openapi&lt;/a&gt; and &lt;a href=&quot;https://starlight-typedoc.vercel.app/&quot;&gt;starlight-typedoc&lt;/a&gt;.
It wrote a plan from that, and then built the plugin step by step.&lt;/p&gt;
&lt;p&gt;The plugin runs Griffe either as a prerequisite step, or as a subprocess during the website build.
Griffe reads the source by static analysis, so nothing is imported and your package does not need to be installed.
You only need &lt;code dir=&quot;auto&quot;&gt;uv&lt;/code&gt; on your path.
The plugin takes the Griffe output JSON and uses it to render one page per module, with a sidebar tree that follows the package layout.
It reads Google, NumPy and Sphinx docstrings, and it renders their prose with your site’s own Markdown pipeline.&lt;/p&gt;
&lt;p&gt;Two pretty neat features are &lt;em&gt;type links&lt;/em&gt; and &lt;em&gt;version badges&lt;/em&gt;.
For type links, the plugin reads Sphinx inventories, so &lt;code dir=&quot;auto&quot;&gt;click.Command&lt;/code&gt; in a rich-click signature links to the Click docs.
For version badges you give the plugin a list of git refs, and it extracts the API at each ref and badges every object with the release that added it.
The plugin also publishes an &lt;code dir=&quot;auto&quot;&gt;objects.inv&lt;/code&gt; and an &lt;code dir=&quot;auto&quot;&gt;llms.txt&lt;/code&gt; for each package, so other sites and AI tools can link to your API.
It is on the &lt;a href=&quot;https://starlight.astro.build/resources/plugins/&quot;&gt;Starlight plugins list&lt;/a&gt;, and it also works on Astro sites that do not use Starlight.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;starlight-codeblocks-code-blocks-that-do-more&quot;&gt;starlight-codeblocks: code blocks that do more&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Starlight renders code blocks with &lt;a href=&quot;https://expressive-code.com/&quot;&gt;Expressive Code&lt;/a&gt;.
It gives you titles, line highlights and diff markers.
But now that I’d written one Starlight plugin, I started to dream about what else I could build.
Code examples are the heart of any documentation site, and I started thinking about all the cool things I’ve seen across my favourite websites over the years: notes on lines, links from code to API docs, and output under a command.&lt;/p&gt;
&lt;p&gt;And so, &lt;a href=&quot;https://ewels.github.io/starlight-codeblocks/&quot;&gt;starlight-codeblocks&lt;/a&gt; started as a separate project in late September.
This time I wrote a design pack before any code: a spec for 24 features, with HTML mockups that showed how each one should look and behave.
I gave the pack to Claude with a kick-off prompt that said to work through the plan without stopping to ask questions.
Version 1.0.0 came out on 5 October, and the plugin now has 27 distinct features.
It builds on Expressive Code, so the code blocks you already have keep working.&lt;/p&gt;
&lt;p&gt;This plugin also handles API auto-linking.
Names in any Python code blocks link to their docs, with a hover card.
The plugin uses the same Sphinx inventories as Starlight Pydocs, so now all free-form code blocks in the docs also link to their API docs.
It also has features for annotations (see the new &lt;a href=&quot;../../documentation/quickstart/&quot;&gt;Quickstart&lt;/a&gt; page) and some cool tricks up its sleeve such as being able to use WebAssembly to run Python code in the browser for examples.&lt;/p&gt;
&lt;p&gt;When both plugins are installed, they find each other with no configuration.
The generated API pages get the hover cards, and long docstring examples collapse.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;rich-codex-terminal-output-as-text&quot;&gt;rich-codex: terminal output as text&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;The final piece in the puzzle was &lt;a href=&quot;https://github.com/ewels/rich-codex&quot;&gt;rich-codex&lt;/a&gt;.
It’s a project I wrote a while back which finds commands in your Markdown, runs them, and saves the terminal output as an image.
It has made the terminal screenshots for rich-click since 2022.
A GitHub Action runs it on every push, so the screenshots stay in step with the code.&lt;/p&gt;
&lt;p&gt;It had three releases to support the new rich-click website build as I went along:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;MDX support. Starlight pages that use tabs or other components are MDX, and MDX does not allow HTML comments. Since August, rich-codex also reads its config from JSX comments: &lt;code dir=&quot;auto&quot;&gt;{/* RICH-CODEX ... */}&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Embedded fonts. An SVG inside an &lt;code dir=&quot;auto&quot;&gt;&amp;#x3C;img&gt;&lt;/code&gt; tag cannot load a web font. If you did not have Fira Code installed, the box lines of a rich-click panel came apart. A user had actually reported this in &lt;a href=&quot;https://github.com/ewels/rich-codex/issues/65&quot;&gt;rich-codex #65&lt;/a&gt;, and this was the nudge I needed to solve it. Since rich-codex version 1.4.0 in September each SVG carries a subset of Fira Code.&lt;/li&gt;
&lt;li&gt;Output as text. Now that I had Starlight Codeblocks working so well with WebAssembly output, it seemed strange to be embedding SVGs everywhere. I didn’t want to run hundreds of examples in the browser, so instead as of version 1.5.0 (released today), rich-codex can save output as an &lt;code dir=&quot;auto&quot;&gt;.ansi&lt;/code&gt; file instead of an image: plain text with the ANSI colour codes kept.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The third change was a fun one.
It required changes across rich-codex, Starlight Codeblocks and the rich-click docs, all in unison.
The rich-click docs now have examples in their markdown files that look like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;/* RICH-CODEX working_dir: docs/code_snippets/introduction_to_click */&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;```&lt;/span&gt;&lt;span&gt;sh&lt;/span&gt;&lt;span&gt; runnable.outputFile=&quot;../images/code_snippets/introduction_to_click/hello_help.ansi&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;$&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;python&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;```&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;rich-codex reads the comment, runs &lt;code dir=&quot;auto&quot;&gt;python hello.py --help&lt;/code&gt;, and writes the coloured output to the &lt;code dir=&quot;auto&quot;&gt;.ansi&lt;/code&gt; file.
Starlight Codeblocks then reads that file at build time and shows the output under the command.
It converts the ANSI codes to colours based on the site theme, and adjusts any colour that has less than &lt;code dir=&quot;auto&quot;&gt;4.5:1&lt;/code&gt; contrast against the output background.&lt;/p&gt;
&lt;p&gt;Here is the example from our README, as the new text output and as the old SVG screenshot:&lt;/p&gt;
&lt;starlight-tabs&gt;&lt;div&gt;&lt;ul role=&quot;tablist&quot;&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-0&quot; id=&quot;tab-0-0&quot; aria-selected=&quot;true&quot; tabindex=&quot;0&quot;&gt;New: text output&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-1&quot; id=&quot;tab-0-1&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;Old: SVG screenshot&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-0&quot; aria-labelledby=&quot;tab-0-0&quot; role=&quot;tabpanel&quot;&gt;&lt;div&gt;&lt;figure data-scb-shell-copy=&quot;&quot; aria-label=&quot;Terminal window&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;$ &lt;/span&gt;&lt;span&gt;python&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;examples/11_hello.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div tabindex=&quot;0&quot; role=&quot;region&quot; aria-label=&quot;Output&quot;&gt;&lt;span data-pagefind-ignore=&quot;&quot;&gt;Output&lt;/span&gt;&lt;pre&gt;&lt;span data-scb-run-line=&quot;0&quot;&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;1&quot;&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Usage:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;11_hello.py&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span&gt;OPTIONS&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;2&quot;&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;3&quot;&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Simple program that greets &lt;/span&gt;&lt;span&gt;NAME&lt;/span&gt;&lt;span&gt; for a total of &lt;/span&gt;&lt;span&gt;COUNT&lt;/span&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;4&quot;&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;times.&lt;/span&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;5&quot;&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;6&quot;&gt;&lt;span&gt;╭─&lt;/span&gt;&lt;span&gt; Options &lt;/span&gt;&lt;span&gt;───────────────────────────────────────────────&lt;/span&gt;&lt;span&gt;─╮&lt;/span&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;7&quot;&gt;&lt;span&gt;│&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--count&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;INTEGER&lt;/span&gt;&lt;span&gt;  Number of greetings.                   &lt;/span&gt;&lt;span&gt;│&lt;/span&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;8&quot;&gt;&lt;span&gt;│&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--name &lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;TEXT   &lt;/span&gt;&lt;span&gt;  The person to greet.                   &lt;/span&gt;&lt;span&gt;│&lt;/span&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;9&quot;&gt;&lt;span&gt;│&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--help &lt;/span&gt;&lt;span&gt;           Show this message and exit.            &lt;/span&gt;&lt;span&gt;│&lt;/span&gt;&lt;/span&gt;
&lt;span data-scb-run-line=&quot;10&quot;&gt;&lt;span&gt;╰──────────────────────────────────────────────────────────╯&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-1&quot; aria-labelledby=&quot;tab-0-1&quot; role=&quot;tabpanel&quot; tabindex=&quot;0&quot; hidden&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/hello.DIVhSJ2q_ZnIMtk.svg&quot; alt=&quot;SVG screenshot of the help text from python examples/11_hello.py –help&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;343&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;/starlight-tabs&gt;
&lt;p&gt;The rich-click site now has 96 of these &lt;code dir=&quot;auto&quot;&gt;.ansi&lt;/code&gt; files in place of SVG screenshots - hopefully you’ll agree they look great, and should be quite a bit easier to maintain.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;use-them-on-your-own-site&quot;&gt;Use them on your own site&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;I finally merged the site rewrite PR today, three months after I opened it as an experiment.
Thanks to Daniel for the review, and for the idea that became Starlight Pydocs.&lt;/p&gt;
&lt;p&gt;None of the three tools mentioned is specific to rich-click:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ewels.github.io/starlight-pydocs/&quot;&gt;starlight-pydocs&lt;/a&gt; works for any Python package. Install it with &lt;code dir=&quot;auto&quot;&gt;npm install starlight-pydocs&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ewels.github.io/starlight-codeblocks/&quot;&gt;starlight-codeblocks&lt;/a&gt; works on any Starlight or Astro site. Install it with &lt;code dir=&quot;auto&quot;&gt;npm install starlight-codeblocks&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/ewels/rich-codex&quot;&gt;rich-codex&lt;/a&gt; runs as a GitHub Action or from the command line, and its &lt;code dir=&quot;auto&quot;&gt;.ansi&lt;/code&gt; output works with any tool that reads ANSI colour codes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both the Starlight plugins ship an agent skill, so you can ask your coding agent to set them up.&lt;/p&gt;
&lt;p&gt;I hope you like how the new site looks, and perhaps find the tools that spun off to be useful.
If something breaks, or if you want a feature, please open an issue on GitHub.&lt;/p&gt;</content:encoded><category>Miscellaneous</category></item><item><title>v1.9 released!</title><link>https://ewels.github.io/rich-click/latest/blog/version-1.9/</link><guid isPermaLink="true">https://ewels.github.io/rich-click/latest/blog/version-1.9/</guid><description>rich-click 1.9 adds themes, panels, IDE autocomplete, Typer support in the CLI tool, help text for arguments and command aliases.</description><pubDate>Tue, 16 Sep 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Today we are excited to release version 1.9 of &lt;strong&gt;rich-click&lt;/strong&gt;, our biggest release yet with lots of amazing new features!&lt;/p&gt;

&lt;p&gt;The big features of the 1.9 release are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Themes&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; CLI support for Typer CLIs&lt;/li&gt;
&lt;li&gt;Panels&lt;/li&gt;
&lt;li&gt;IDE autocomplete support&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;h2 id=&quot;themes&quot;&gt;Themes&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;The biggest theme (pun intended) of &lt;strong&gt;rich-click&lt;/strong&gt; 1.9 is &lt;strong&gt;themes&lt;/strong&gt;.
These can be set with an environment variable (as an end user) or in the &lt;code dir=&quot;auto&quot;&gt;@click.rich_config()&lt;/code&gt; (as a developer).&lt;/p&gt;
&lt;p&gt;Here are some simple examples of themes:&lt;/p&gt;
&lt;starlight-tabs data-sync-key=&quot;theme-example&quot;&gt;&lt;div&gt;&lt;ul role=&quot;tablist&quot;&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-0&quot; id=&quot;tab-0-0&quot; aria-selected=&quot;true&quot; tabindex=&quot;0&quot;&gt;nord-nu&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-1&quot; id=&quot;tab-0-1&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;dracula-modern&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-2&quot; id=&quot;tab-0-2&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;cargo-slim&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-3&quot; id=&quot;tab-0-3&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;forest-robo&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-0&quot; aria-labelledby=&quot;tab-0-0&quot; role=&quot;tabpanel&quot;&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;RICH_CLICK_THEME&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;nord-nu&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;python&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;docs/code_snippets/themes/cli.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/themes_ex1.C709eWgO_Z1BVyRN.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1482&quot; height=&quot;880&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-1&quot; aria-labelledby=&quot;tab-0-1&quot; role=&quot;tabpanel&quot; hidden&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;RICH_CLICK_THEME&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;dracula-modern&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;python&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;docs/code_snippets/themes/cli.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/themes_ex2.CfaPuAKr_1gYLyK.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1482&quot; height=&quot;1026&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-2&quot; aria-labelledby=&quot;tab-0-2&quot; role=&quot;tabpanel&quot; hidden&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;RICH_CLICK_THEME&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;cargo-slim&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;python&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;docs/code_snippets/themes/cli.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/themes_ex3.DZvf_ziE_AdE6M.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1482&quot; height=&quot;806&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-3&quot; aria-labelledby=&quot;tab-0-3&quot; role=&quot;tabpanel&quot; hidden&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;RICH_CLICK_THEME&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;forest-robo&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;python&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;docs/code_snippets/themes/cli.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/themes_ex4.eVSZGSTk_Z1XNWNG.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1482&quot; height=&quot;1075&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;starlight-tabs-restore&gt;&lt;/starlight-tabs-restore&gt;&lt;/starlight-tabs&gt;
&lt;p&gt;As you can see, themes are not &lt;em&gt;just&lt;/em&gt; colors, they can also completely change the formatting, too!&lt;/p&gt;
&lt;aside aria-label=&quot;Tip&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;Tip&lt;/p&gt;&lt;div&gt;&lt;p&gt;The ability to customise &lt;strong&gt;rich-click&lt;/strong&gt; output &lt;em&gt;as an end user&lt;/em&gt; like this is a big win for accessibility!
See our &lt;a href=&quot;https://ewels.github.io/rich-click/1.9/documentation/accessibility&quot;&gt;Accessibility documentation&lt;/a&gt; for more information.&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;Themes are defined as &lt;code dir=&quot;auto&quot;&gt;{color_palette}-{format}&lt;/code&gt;. Overall, there are over &lt;strong&gt;100 themes&lt;/strong&gt; to choose from.&lt;/p&gt;
&lt;p&gt;Our first adopter of &lt;strong&gt;rich-click&lt;/strong&gt; themes is &lt;a href=&quot;https://litestar.dev/&quot;&gt;Litestar&lt;/a&gt;, the ASGI API framework.
They have their own official color palette called &lt;code dir=&quot;auto&quot;&gt;star&lt;/code&gt;. (Of course, you can use this theme for your own CLI, too!)
Here’s what it looks like!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/litestar.CUHLmlc0_oEbnE.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1482&quot; height=&quot;636&quot;&gt;&lt;/p&gt;
&lt;p&gt;If you want to see all the options available to you, you can run the CLI command &lt;code dir=&quot;auto&quot;&gt;rich-click --themes&lt;/code&gt;:&lt;/p&gt;
&lt;details&gt;&lt;summary&gt;Output of &lt;code&gt;rich-click –themes&lt;/code&gt;&lt;/summary&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/all_themes.52V05Ukg_Z18vDg0.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1287&quot; height=&quot;2319&quot;&gt;&lt;/p&gt;&lt;/details&gt;
&lt;p&gt;If you are interested in learning more about themes, read about them in &lt;a href=&quot;https://ewels.github.io/rich-click/1.9/documentation/themes/&quot;&gt;the &lt;strong&gt;Themes&lt;/strong&gt; docs&lt;/a&gt;.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;rich-click-cli-support-for-typer-clis&quot;&gt;&lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; CLI support for Typer CLIs&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;If you thought themes are cool in &lt;strong&gt;rich-click&lt;/strong&gt;, wait until you see them in Typer!&lt;/p&gt;
&lt;p&gt;The &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; CLI now supports Typer, which also means that &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; themes are available to Typer.&lt;/p&gt;
&lt;details&gt;&lt;summary&gt;Code - Example Typer CLI&lt;/summary&gt;&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot; data-scb-api-icons=&quot;{&amp;#x22;typer&amp;#x22;:&amp;#x22;M21.818 3.646H2.182C.982 3.646 0 4.483 0 5.505v3.707h2.182V5.486h19.636v13.036H2.182v-3.735H0v3.726c0 1.022.982 1.84 2.182 1.84h19.636c1.2 0 2.182-.818 2.182-1.84V5.505c0-1.032-.982-1.859-2.182-1.859Zm-10.909 12.07L15.273 12l-4.364-3.717v2.787H0v1.859h10.909v2.787Z&amp;#x22;}&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# /// script&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# dependencies = [&quot;rich-click&gt;=1.9&quot;, &quot;typer&gt;=0.15&quot;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ///&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# This example comes from the Typer docs:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# https://typer.tiangolo.com/tutorial/commands/help/#help-panels-for-commands&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; typer&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;app &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://typer.tiangolo.com/reference/typer/#typer.Typer&quot; aria-description=&quot;class typer.Typer. Typer 0.0.0 documentation.&quot; data-scb-api-head=&quot;class typer.Typer&quot; data-scb-api-source=&quot;Typer 0.0.0 documentation&quot; data-scb-api-icon=&quot;typer&quot;&gt;&lt;span&gt;typer.&lt;/span&gt;&lt;span&gt;Typer&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;rich_markup_mode&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;rich&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@app.command&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;create&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;username&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;str&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;[green]Create[/green] a new user. :sparkles:&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;Creating user: &lt;/span&gt;&lt;span&gt;{username}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@app.command&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;delete&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;username&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;str&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;[red]Delete[/red] a user. :fire:&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;Deleting user: &lt;/span&gt;&lt;span&gt;{username}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@app.command&lt;/span&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;rich_help_panel&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Utils and Configs&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;configuration&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;str&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;[blue]Configure[/blue] the system. :wrench:&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;Configuring the system with: &lt;/span&gt;&lt;span&gt;{configuration}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@app.command&lt;/span&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;rich_help_panel&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Utils and Configs&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;sync&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;[blue]Synchronize[/blue] the system or something fancy like that. :recycle:&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Syncing the system&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@app.command&lt;/span&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;rich_help_panel&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Help and Others&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Get [yellow]help[/yellow] with the system. :question:&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Opening help portal...&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@app.command&lt;/span&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;rich_help_panel&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Help and Others&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;report&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;[yellow]Report[/yellow] an issue. :bug:&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Please open a new issue online, not a direct message&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;app&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/details&gt;
&lt;details open&gt;&lt;summary&gt;Output - Example Typer CLI with rich-click&lt;/summary&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/typer_example.Ds5D9WfE_Z1PlJ8s.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;587&quot;&gt;&lt;/p&gt;&lt;/details&gt;
&lt;p&gt;Even cooler, you can patch Typer &lt;strong&gt;directly in your code&lt;/strong&gt; to use &lt;strong&gt;rich-click&lt;/strong&gt;’s themes.
This means you don’t need to rely on users to run &lt;code dir=&quot;auto&quot;&gt;rich-click your-cli-tool&lt;/code&gt; to get access to these themes.&lt;/p&gt;
&lt;p&gt;In the below example, we patch typer to use the &lt;code dir=&quot;auto&quot;&gt;star-slim&lt;/code&gt; theme directly in the CLI code:&lt;/p&gt;
&lt;details open&gt;&lt;summary&gt;Code - Typer CLI with patch&lt;/summary&gt;&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot; data-scb-api-icons=&quot;{&amp;#x22;python&amp;#x22;:&amp;#x22;M11.858 0c-.978.005-1.913.088-2.736.234C6.7.662 6.26 1.558 6.26 3.21v2.182h5.725v.727H4.111c-1.664 0-3.121 1-3.577 2.903-.526 2.181-.549 3.542 0 5.82.407 1.694 1.379 2.902 3.043 2.902h1.969v-2.616c0-1.89 1.635-3.557 3.576-3.557h5.72c1.591 0 2.862-1.31 2.862-2.91v-5.45c0-1.553-1.309-2.718-2.863-2.977A18 18 0 0 0 11.858 0M8.762 1.755c.591 0 1.074.491 1.074 1.095 0 .601-.483 1.087-1.074 1.087A1.08 1.08 0 0 1 7.688 2.85c0-.604.48-1.095 1.074-1.095m9.656 4.364v2.543c0 1.971-1.671 3.63-3.577 3.63H9.122c-1.566 0-2.862 1.34-2.862 2.91v5.452c0 1.551 1.349 2.464 2.862 2.91 1.813.532 3.55.628 5.72 0 1.44-.418 2.862-1.258 2.862-2.91V18.47h-5.719v-.727h8.582c1.664 0 2.284-1.16 2.862-2.903.598-1.793.573-3.518 0-5.819-.41-1.656-1.196-2.903-2.862-2.903zm-3.216 13.807a1.08 1.08 0 0 1 1.074 1.088c0 .604-.48 1.094-1.074 1.094-.592 0-1.075-.49-1.075-1.094 0-.601.483-1.088 1.075-1.088&amp;#x22;,&amp;#x22;typer&amp;#x22;:&amp;#x22;M21.818 3.646H2.182C.982 3.646 0 4.483 0 5.505v3.707h2.182V5.486h19.636v13.036H2.182v-3.735H0v3.726c0 1.022.982 1.84 2.182 1.84h19.636c1.2 0 2.182-.818 2.182-1.84V5.505c0-1.032-.982-1.859-2.182-1.859Zm-10.909 12.07L15.273 12l-4.364-3.717v2.787H0v1.859h10.909v2.787Z&amp;#x22;}&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# /// script&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# dependencies = [&quot;rich-click&gt;=1.9&quot;, &quot;typer&gt;=0.15&quot;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ///&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/enum.html#module-enum&quot; aria-description=&quot;module enum. Support for enumerations. Python 3.15 documentation.&quot; data-scb-api-head=&quot;module enum&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Support for enumerations&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;enum&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/enum.html#enum.Enum&quot; aria-description=&quot;class enum.Enum. Enum is the base class for all enum enumerations. Python 3.15 documentation.&quot; data-scb-api-head=&quot;class enum.Enum&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Enum is the base class for all enum enumerations.&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;Enum&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; typer&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://typing-extensions.readthedocs.io/en/stable/index.html#module-typing_extensions&quot; aria-description=&quot;module typing_extensions. typing_extensions documentation.&quot; data-scb-api-head=&quot;module typing_extensions&quot; data-scb-api-source=&quot;typing_extensions documentation&quot;&gt;&lt;span&gt;typing_extensions&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://typing-extensions.readthedocs.io/en/stable/index.html#typing_extensions.Annotated&quot; aria-description=&quot;data typing_extensions.Annotated. See typing.Annotated and PEP 593. typing_extensions documentation.&quot; data-scb-api-head=&quot;data typing_extensions.Annotated&quot; data-scb-api-source=&quot;typing_extensions documentation&quot; data-scb-api-summary=&quot;See typing.Annotated and PEP 593.&quot;&gt;&lt;span&gt;Annotated&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;class&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;LogLevel&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;str&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/enum.html#enum.Enum&quot; aria-description=&quot;class enum.Enum. Enum is the base class for all enum enumerations. Python 3.15 documentation.&quot; data-scb-api-head=&quot;class enum.Enum&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Enum is the base class for all enum enumerations.&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;Enum&lt;/span&gt;&lt;/a&gt;&lt;span&gt;):&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;debug &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;debug&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;info &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;info&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;warn &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;warn&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;error &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;error&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;main&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;id&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://typing-extensions.readthedocs.io/en/stable/index.html#typing_extensions.Annotated&quot; aria-description=&quot;data typing_extensions.Annotated. See typing.Annotated and PEP 593. typing_extensions documentation.&quot; data-scb-api-head=&quot;data typing_extensions.Annotated&quot; data-scb-api-source=&quot;typing_extensions documentation&quot; data-scb-api-summary=&quot;See typing.Annotated and PEP 593.&quot;&gt;&lt;span&gt;Annotated&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href=&quot;https://typer.tiangolo.com/reference/parameters/#typer.Argument&quot; aria-description=&quot;function typer.Argument. Typer 0.0.0 documentation.&quot; data-scb-api-head=&quot;function typer.Argument&quot; data-scb-api-source=&quot;Typer 0.0.0 documentation&quot; data-scb-api-icon=&quot;typer&quot;&gt;&lt;span&gt;typer.&lt;/span&gt;&lt;span&gt;Argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;min&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;max&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;)],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;age&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://typing-extensions.readthedocs.io/en/stable/index.html#typing_extensions.Annotated&quot; aria-description=&quot;data typing_extensions.Annotated. See typing.Annotated and PEP 593. typing_extensions documentation.&quot; data-scb-api-head=&quot;data typing_extensions.Annotated&quot; data-scb-api-source=&quot;typing_extensions documentation&quot; data-scb-api-summary=&quot;See typing.Annotated and PEP 593.&quot;&gt;&lt;span&gt;Annotated&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href=&quot;https://typer.tiangolo.com/reference/parameters/#typer.Option&quot; aria-description=&quot;function typer.Option. Typer 0.0.0 documentation.&quot; data-scb-api-head=&quot;function typer.Option&quot; data-scb-api-source=&quot;Typer 0.0.0 documentation&quot; data-scb-api-icon=&quot;typer&quot;&gt;&lt;span&gt;typer.&lt;/span&gt;&lt;span&gt;Option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;min&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;18&lt;/span&gt;&lt;span&gt;)] &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;20&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;score&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://typing-extensions.readthedocs.io/en/stable/index.html#typing_extensions.Annotated&quot; aria-description=&quot;data typing_extensions.Annotated. See typing.Annotated and PEP 593. typing_extensions documentation.&quot; data-scb-api-head=&quot;data typing_extensions.Annotated&quot; data-scb-api-source=&quot;typing_extensions documentation&quot; data-scb-api-summary=&quot;See typing.Annotated and PEP 593.&quot;&gt;&lt;span&gt;Annotated&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;float&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href=&quot;https://typer.tiangolo.com/reference/parameters/#typer.Option&quot; aria-description=&quot;function typer.Option. Typer 0.0.0 documentation.&quot; data-scb-api-head=&quot;function typer.Option&quot; data-scb-api-source=&quot;Typer 0.0.0 documentation&quot; data-scb-api-icon=&quot;typer&quot;&gt;&lt;span&gt;typer.&lt;/span&gt;&lt;span&gt;Option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;max&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;100&lt;/span&gt;&lt;span&gt;)] &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;log_level&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://typing-extensions.readthedocs.io/en/stable/index.html#typing_extensions.Annotated&quot; aria-description=&quot;data typing_extensions.Annotated. See typing.Annotated and PEP 593. typing_extensions documentation.&quot; data-scb-api-head=&quot;data typing_extensions.Annotated&quot; data-scb-api-source=&quot;typing_extensions documentation&quot; data-scb-api-summary=&quot;See typing.Annotated and PEP 593.&quot;&gt;&lt;span&gt;Annotated&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[LogLevel, &lt;/span&gt;&lt;a href=&quot;https://typer.tiangolo.com/reference/parameters/#typer.Option&quot; aria-description=&quot;function typer.Option. Typer 0.0.0 documentation.&quot; data-scb-api-head=&quot;function typer.Option&quot; data-scb-api-source=&quot;Typer 0.0.0 documentation&quot; data-scb-api-icon=&quot;typer&quot;&gt;&lt;span&gt;typer.&lt;/span&gt;&lt;span&gt;Option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;rich_help_panel&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Logging&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)] &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; LogLevel.info,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;color&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://typing-extensions.readthedocs.io/en/stable/index.html#typing_extensions.Annotated&quot; aria-description=&quot;data typing_extensions.Annotated. See typing.Annotated and PEP 593. typing_extensions documentation.&quot; data-scb-api-head=&quot;data typing_extensions.Annotated&quot; data-scb-api-source=&quot;typing_extensions documentation&quot; data-scb-api-summary=&quot;See typing.Annotated and PEP 593.&quot;&gt;&lt;span&gt;Annotated&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;bool&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href=&quot;https://typer.tiangolo.com/reference/parameters/#typer.Option&quot; aria-description=&quot;function typer.Option. Typer 0.0.0 documentation.&quot; data-scb-api-head=&quot;function typer.Option&quot; data-scb-api-source=&quot;Typer 0.0.0 documentation&quot; data-scb-api-icon=&quot;typer&quot;&gt;&lt;span&gt;typer.&lt;/span&gt;&lt;span&gt;Option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;rich_help_panel&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Logging&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)] &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; -&gt; &lt;/span&gt;&lt;span&gt;None&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;id=&lt;/span&gt;&lt;span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;id&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span&gt; age=&lt;/span&gt;&lt;span&gt;{age}&lt;/span&gt;&lt;span&gt; score=&lt;/span&gt;&lt;span&gt;{score}&lt;/span&gt;&lt;span&gt; log_level=&lt;/span&gt;&lt;span&gt;{log_level}&lt;/span&gt;&lt;span&gt; color=&lt;/span&gt;&lt;span&gt;{color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/patch/&quot; aria-description=&quot;module rich_click.patch. Patch click, Typer or asyncclick so that their commands print help and errors with rich-click. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click.patch&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Patch click, Typer or asyncclick so that their commands print help and errors with rich-click.&quot;&gt;&lt;span&gt;rich_click.patch&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/patch/#rich_click.patch.patch_typer&quot; aria-description=&quot;def patch_typer(rich_config: RichHelpConfiguration | None = None) -&gt; None. Patch Typer so that its commands print help and errors with rich-click. rich_click API reference.&quot; data-scb-api-head=&quot;def patch_typer(rich_config: RichHelpConfiguration | None = None) -&gt; None&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Patch Typer so that its commands print help and errors with rich-click.&quot;&gt;&lt;span&gt;patch_typer&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_click/&quot; aria-description=&quot;module rich_click.rich_click. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click.rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot;&gt;&lt;span&gt;rich_click.rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; rc&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/patch/#rich_click.patch.patch_typer&quot; aria-description=&quot;def patch_typer(rich_config: RichHelpConfiguration | None = None) -&gt; None. Patch Typer so that its commands print help and errors with rich-click. rich_click API reference.&quot; data-scb-api-head=&quot;def patch_typer(rich_config: RichHelpConfiguration | None = None) -&gt; None&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Patch Typer so that its commands print help and errors with rich-click.&quot;&gt;&lt;span&gt;patch_typer&lt;/span&gt;&lt;/a&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_click/#rich_click.rich_click.THEME&quot; aria-description=&quot;THEME: str | RichClickTheme | None = None. rich_click API reference.&quot; data-scb-api-head=&quot;THEME: str | RichClickTheme | None = None&quot; data-scb-api-source=&quot;rich_click API reference&quot;&gt;&lt;span&gt;rc.&lt;/span&gt;&lt;span&gt;THEME&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;star-slim&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://typer.tiangolo.com/reference/run_launch/#typer.run&quot; aria-description=&quot;function typer.run. Typer 0.0.0 documentation.&quot; data-scb-api-head=&quot;function typer.run&quot; data-scb-api-source=&quot;Typer 0.0.0 documentation&quot; data-scb-api-icon=&quot;typer&quot;&gt;&lt;span&gt;typer.&lt;/span&gt;&lt;span&gt;run&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;main&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/details&gt;
&lt;details open&gt;&lt;summary&gt;Output - Typer CLI with patch&lt;/summary&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/typer_example.D2H-zrKF_Z1NxaWf.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;440&quot;&gt;&lt;/p&gt;&lt;/details&gt;
&lt;p&gt;Under the hood, we are doing metaclass &lt;a href=&quot;https://github.com/ewels/rich-click/blob/e57aa800555bb8f3e3c46582f61fb22080802f4b/src/rich_click/patch.py&quot;&gt;dark magic&lt;/a&gt; to prevent needing to preemptively import Typer,
and to prevent requiring users to specify that a CLI is a Typer CLI.
This keeps the runtime as slim and as fast as possible for non-Typer CLIs.
(As of Typer version 0.17.0 released August 30, 2025, lazy loading Typer for improved performance is &lt;a href=&quot;https://github.com/fastapi/typer/pull/1128&quot;&gt;less necessary&lt;/a&gt;, but it’s still nice to have.)&lt;/p&gt;
&lt;p&gt;This feature is still experimental, so please let us know if you encounter any bugs.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;panels&quot;&gt;Panels&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Panels are a big new feature of &lt;strong&gt;rich-click&lt;/strong&gt;, and bring along with it an intuitive and powerful API for customization.&lt;/p&gt;
&lt;p&gt;Panels replace the old “groups” feature of previous &lt;strong&gt;rich-click&lt;/strong&gt; versions. (Don’t worry, your old code will still work just fine.)
This is something I’ve wanted in &lt;strong&gt;rich-click&lt;/strong&gt; for a long time, as I’ve always found the old groups API powerful but a little hard to use.&lt;/p&gt;
&lt;p&gt;With the new API, defining a panel is as simple as adding a decorator.&lt;/p&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.command&quot; aria-description=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]. Create a command. rich_click API reference.&quot; data-scb-api-head=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a command.&quot;&gt;&lt;span&gt;click.command&lt;/span&gt;&lt;/a&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Source&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Main&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Destination&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Main&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Environment&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--log-level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-l&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Log level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.version_option&quot; aria-description=&quot;def version_option(version: str | None = None, *param_decls: str, package_name: str | None = None, prog_name: str | None = None, message: str | None = None, **kwargs: Any) -&gt; Callable[[FC], FC]. Add a --version option that prints the version and exits. rich_click API reference.&quot; data-scb-api-head=&quot;def version_option(version: str | None = None, *param_decls: str, package_name: str | None = None, prog_name: str | None = None, message: str | None = None, **kwargs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a --version option that prints the version and exits.&quot;&gt;&lt;span&gt;click.version_option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;1.2.3&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--version&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-V&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.help_option&quot; aria-description=&quot;def help_option(*param_decls: str, **kwargs: Any) -&gt; Callable[[FC], FC]. Add a --help option that prints the help and exits. rich_click API reference.&quot; data-scb-api-head=&quot;def help_option(*param_decls: str, **kwargs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a --help option that prints the help and exits.&quot;&gt;&lt;span&gt;click.help_option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-h&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option_panel&quot; aria-description=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]. Show a group of options in a panel of its own in the help output. rich_click API reference.&quot; data-scb-api-head=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Show a group of options in a panel of its own in the help output.&quot;&gt;&lt;span&gt;click.option_panel&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Main&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option_panel&quot; aria-description=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]. Show a group of options in a panel of its own in the help output. rich_click API reference.&quot; data-scb-api-head=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Show a group of options in a panel of its own in the help output.&quot;&gt;&lt;span&gt;click.option_panel&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;theme&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;star-nu&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;max_width&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;80&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;move_item&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;env&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;log_level&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Move an item from a src location to a dest location&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;pass&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;move_item&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/panels_simple.DDVG94TW_Z7P3B.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;392&quot;&gt;&lt;/p&gt;
&lt;p&gt;You can also define the objects mapped to a panel in the panel itself.
The below code is effectively equivalent to the above code:&lt;/p&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.command&quot; aria-description=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]. Create a command. rich_click API reference.&quot; data-scb-api-head=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a command.&quot;&gt;&lt;span&gt;click.command&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;context_settings&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;help_option_names&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-h&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Source&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Destination&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Environment&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--log-level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-l&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Log level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.version_option&quot; aria-description=&quot;def version_option(version: str | None = None, *param_decls: str, package_name: str | None = None, prog_name: str | None = None, message: str | None = None, **kwargs: Any) -&gt; Callable[[FC], FC]. Add a --version option that prints the version and exits. rich_click API reference.&quot; data-scb-api-head=&quot;def version_option(version: str | None = None, *param_decls: str, package_name: str | None = None, prog_name: str | None = None, message: str | None = None, **kwargs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a --version option that prints the version and exits.&quot;&gt;&lt;span&gt;click.version_option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;1.2.3&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--version&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-V&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.help_option&quot; aria-description=&quot;def help_option(*param_decls: str, **kwargs: Any) -&gt; Callable[[FC], FC]. Add a --help option that prints the help and exits. rich_click API reference.&quot; data-scb-api-head=&quot;def help_option(*param_decls: str, **kwargs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a --help option that prints the help and exits.&quot;&gt;&lt;span&gt;click.help_option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-h&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option_panel&quot; aria-description=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]. Show a group of options in a panel of its own in the help output. rich_click API reference.&quot; data-scb-api-head=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Show a group of options in a panel of its own in the help output.&quot;&gt;&lt;span&gt;click.option_panel&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Main&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;options&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option_panel&quot; aria-description=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]. Show a group of options in a panel of its own in the help output. rich_click API reference.&quot; data-scb-api-head=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Show a group of options in a panel of its own in the help output.&quot;&gt;&lt;span&gt;click.option_panel&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;options&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--log-level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--version&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;theme&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;star-nu&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;max_width&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;80&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;move_item&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;env&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;log_level&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Move an item from a src location to a dest location&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;pass&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;move_item&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The below is a fairly convoluted example of panels, which shows off the level of customizability available:&lt;/p&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.command&quot; aria-description=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]. Create a command. rich_click API reference.&quot; data-scb-api-head=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a command.&quot;&gt;&lt;span&gt;click.command&lt;/span&gt;&lt;/a&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Source&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Main&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Destination&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Main&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Environment&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--log-level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-l&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Log level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.version_option&quot; aria-description=&quot;def version_option(version: str | None = None, *param_decls: str, package_name: str | None = None, prog_name: str | None = None, message: str | None = None, **kwargs: Any) -&gt; Callable[[FC], FC]. Add a --version option that prints the version and exits. rich_click API reference.&quot; data-scb-api-head=&quot;def version_option(version: str | None = None, *param_decls: str, package_name: str | None = None, prog_name: str | None = None, message: str | None = None, **kwargs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a --version option that prints the version and exits.&quot;&gt;&lt;span&gt;click.version_option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;1.2.3&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--version&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-V&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.help_option&quot; aria-description=&quot;def help_option(*param_decls: str, **kwargs: Any) -&gt; Callable[[FC], FC]. Add a --help option that prints the help and exits. rich_click API reference.&quot; data-scb-api-head=&quot;def help_option(*param_decls: str, **kwargs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a --help option that prints the help and exits.&quot;&gt;&lt;span&gt;click.help_option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-h&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;panel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option_panel&quot; aria-description=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]. Show a group of options in a panel of its own in the help output. rich_click API reference.&quot; data-scb-api-head=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Show a group of options in a panel of its own in the help output.&quot;&gt;&lt;span&gt;click.option_panel&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Main&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;title_style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold red&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Required arguments&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;help_style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim red&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;columns&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;opt_all&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;metavar&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;panel_styles&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;border_style&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim red&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option_panel&quot; aria-description=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]. Show a group of options in a panel of its own in the help output. rich_click API reference.&quot; data-scb-api-head=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Show a group of options in a panel of its own in the help output.&quot;&gt;&lt;span&gt;click.option_panel&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Extra&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;title_style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Optional settings&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;help_style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;columns&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;opt_all&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;metavar&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span&gt;panel_styles&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;border_style&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;theme&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;star-nu&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;max_width&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;80&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;move_item&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;env&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;log_level&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Move an item from a src location to a dest location&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;pass&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;move_item&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/panels_complex.BHmOZY9w_Z1NxaWf.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;440&quot;&gt;&lt;/p&gt;
&lt;p&gt;Neat, huh? If you are interested in learning more, read about panels in &lt;a href=&quot;https://ewels.github.io/rich-click/1.9/documentation/panels/overview&quot;&gt;the &lt;strong&gt;Panels&lt;/strong&gt; docs&lt;/a&gt;.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;ide-autocomplete-support&quot;&gt;IDE autocomplete support&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;I love Click! That’s why we maintain this repo, after all. That said, one thing that is a nuisance with Click is that it doesn’t have great type annotations for its core API, meaning your IDE doesn’t autocomplete args for Click decorators.&lt;/p&gt;
&lt;p&gt;Well, we have fixed this issue in &lt;strong&gt;rich-click&lt;/strong&gt; 1.9.0:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/ide1.DziqkAS-_Z19zN8w.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;694&quot; height=&quot;350&quot;&gt;&lt;/p&gt;
&lt;p&gt;We even typed the more opaque dicts, such as &lt;code dir=&quot;auto&quot;&gt;context_settings&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/ide2.DHVy9V93_1GudBW.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;666&quot; height=&quot;343&quot;&gt;&lt;/p&gt;
&lt;p&gt;Everything should be type-hinted, and we’ve tested this against both pyright and mypy to good results.&lt;/p&gt;
&lt;aside aria-label=&quot;Note&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;Note&lt;/p&gt;&lt;div&gt;&lt;p&gt;Adding a feature like this is a little outside the intended scope of &lt;strong&gt;rich-click&lt;/strong&gt;. We are also aware of the maintenance nightmare that &lt;code dir=&quot;auto&quot;&gt;.pyi&lt;/code&gt; files create. But we feel it is such a huge quality of life upgrade for the developer experience that we’d be silly to not add it. You’re welcome!&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;div&gt;&lt;h2 id=&quot;other-cool-features&quot;&gt;Other cool features&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;help-for-arguments-clickargument-help&quot;&gt;Help for arguments: &lt;code dir=&quot;auto&quot;&gt;@click.argument(..., help=)&lt;/code&gt;&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;That’s right! We now support a &lt;code dir=&quot;auto&quot;&gt;help&lt;/code&gt; kwarg for arguments.&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;aliases-groupcommand-aliases&quot;&gt;Aliases: &lt;code dir=&quot;auto&quot;&gt;@Group().command(..., aliases=[...])&lt;/code&gt;&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;rich-click&lt;/strong&gt; commands can now be given &lt;strong&gt;aliases&lt;/strong&gt;, similar to other Click extensions (&lt;a href=&quot;https://github.com/click-contrib/click-aliases/tree/master&quot;&gt;click-aliases&lt;/a&gt;, &lt;a href=&quot;https://kdeldycke.github.io/click-extra/&quot;&gt;click-extra&lt;/a&gt;, &lt;a href=&quot;https://cloup.readthedocs.io/en/stable/&quot;&gt;cloup&lt;/a&gt;).&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;rich-click-cli-supports-pathtofilepy&quot;&gt;&lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; CLI supports &lt;code dir=&quot;auto&quot;&gt;path/to/file.py&lt;/code&gt;&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;Now, all the following ways of invoking the &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; CLI are supported:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;rich-click hello:cli --help&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;rich-click hello.py --help&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;rich-click hello --help&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In prior versions, only the first way worked.&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;smarter-newline-handling-in-command-help-text&quot;&gt;Smarter newline handling in command help text&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;We are now a little more careful and practical with how we handle newlines in help text.
You can see a demo of rich-click 1.9’s newline handling below:&lt;/p&gt;
&lt;details&gt;&lt;summary&gt;Code&lt;/summary&gt;&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# /// script&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# dependencies = [&quot;rich-click&gt;=1.9&quot;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ///&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.command&quot; aria-description=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]. Create a command. rich_click API reference.&quot; data-scb-api-head=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a command.&quot;&gt;&lt;span&gt;click.command&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;newline-control&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Newline&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;control&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Double newlines are always preserved.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;But single newlines are usually not.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;There are however a few situations where we preserve single newlines.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Indented lines with 4+ spaces are preserved:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;```python&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;from foo import bar&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;\&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;bar.action()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;```&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Unordered lists are preserved:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- like&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- this&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;also:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;* newlines within unordered lists&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;are collapsed&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;down.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;* pretty neat!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Last but not least, we preserve:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&gt; block&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&gt; quotes&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/details&gt;
&lt;details&gt;&lt;summary&gt;Output&lt;/summary&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/newline_control.DmcQ_SE5_2ivJvz.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;709&quot;&gt;&lt;/p&gt;&lt;/details&gt;
&lt;div&gt;&lt;h3 id=&quot;stderr-help-context_settingshelp_to_stderr-true&quot;&gt;Stderr help: &lt;code dir=&quot;auto&quot;&gt;context_settings={&quot;help_to_stderr&quot;: True}&lt;/code&gt;&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;Print help text to stderr with a context setting!&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;deferred-help-text-rendering&quot;&gt;Deferred help text rendering&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;Like normal Click, now help text is pushed to a buffer and rendered at the very end of the help text generation context.
Most users won’t notice a difference, but it makes help text rendering atomic (e.g. in the event of an error), and also assists with integrating into tools such as &lt;a href=&quot;https://github.com/mkdocs/mkdocs-click&quot;&gt;mkdocs-click&lt;/a&gt;.&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;many-other-minor-improvements&quot;&gt;Many other minor improvements&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;There have been so many tiny changes to &lt;strong&gt;rich-click&lt;/strong&gt; over the past few months that I’ve lost count.
We’ve added more than a dozen different config options, we’ve fixed a few minor bugs, we’ve improved performance slightly, and we’ve made everything more composable for the really advanced users who want to subclass &lt;strong&gt;rich-click&lt;/strong&gt;’s objects.&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;dropped-support&quot;&gt;Dropped support&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;In &lt;strong&gt;rich-click&lt;/strong&gt; 1.9, we finally pulled the plug on Python 3.7, Click 7, and Rich 10+11.&lt;/p&gt;
&lt;p&gt;We are being a little more conservative than we perhaps need to: Click 8 came out in 2021, Rich 12 came out in 2022, and Python 3.8 came out in 2019 and hit end-of-life in 2024.
That said, we don’t believe there is a major cost to supporting these other than some slightly ugly backend code here and there, so we’ll continue to be conservative with dropping support.&lt;/p&gt;
&lt;p&gt;Additionally, there are a handful of additional pending deprecations introduced to config options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;show_metavars_column&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;append_metavars_help&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;option_envvar_first&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;use_markdown_emoji&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Of these config options being deprecated, the most popular is the combination of &lt;code dir=&quot;auto&quot;&gt;append_metavars_help=True&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;show_metavars_column=False&lt;/code&gt;.
We deprecated support for these because in 1.9, this is handled via declaring order of elements explicitly with the config options &lt;code dir=&quot;auto&quot;&gt;options_table_column_types&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;options_table_help_sections&lt;/code&gt;.
An example of this approach can be seen below:&lt;/p&gt;
&lt;details&gt;&lt;summary&gt;Code&lt;/summary&gt;&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# /// script&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# dependencies = [&quot;rich-click&gt;=1.9&quot;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ///&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.command&quot; aria-description=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]. Create a command. rich_click API reference.&quot; data-scb-api-head=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a command.&quot;&gt;&lt;span&gt;click.command&lt;/span&gt;&lt;/a&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;              &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Environment&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;              &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;show_default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;              &lt;/span&gt;&lt;span&gt;envvar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;ENV&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;show_envvar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;              &lt;/span&gt;&lt;span&gt;required&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--log-level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;              &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Log level&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;              &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;INFO&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;show_default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;              &lt;/span&gt;&lt;span&gt;envvar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;LOG_LEVEL&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;show_envvar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;              &lt;/span&gt;&lt;span&gt;deprecated&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option_panel&quot; aria-description=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]. Show a group of options in a panel of its own in the help output. rich_click API reference.&quot; data-scb-api-head=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Show a group of options in a panel of its own in the help output.&quot;&gt;&lt;span&gt;click.option_panel&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Arguments&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option_panel&quot; aria-description=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]. Show a group of options in a panel of its own in the help output. rich_click API reference.&quot; data-scb-api-head=&quot;def option_panel(name: str, cls: type[RichPanel[Parameter, Any]] = RichOptionPanel, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Show a group of options in a panel of its own in the help output.&quot;&gt;&lt;span&gt;click.option_panel&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Options&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;options_table_column_types&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;opt_long&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;opt_short&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;options_table_help_sections&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;metavar&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;required&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;envvar&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;move_item&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;src&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;dest&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;env&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;log_level&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Move an item from a src location to a dest location&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;pass&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;move_item&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/details&gt;
&lt;details&gt;&lt;summary&gt;Output&lt;/summary&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/panels_help_section_types.CSXIeKDD_Z1NxaWf.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;440&quot;&gt;&lt;/p&gt;&lt;/details&gt;
&lt;div&gt;&lt;h2 id=&quot;plans-for-the-future&quot;&gt;Plans for the future&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Our short term plan is to monitor issues aggressively over the next month to patch any problems people encounter with &lt;strong&gt;rich-click&lt;/strong&gt; 1.9.
Please submit issues on Github if you encounter any strange behavior! We appreciate your assistance in making &lt;strong&gt;rich-click&lt;/strong&gt; as robust as it can be.&lt;/p&gt;
&lt;p&gt;In &lt;a href=&quot;https://ewels.github.io/rich-click/latest/blog/2024/04/30/version-1.8/&quot;&gt;the 1.8 release blog post&lt;/a&gt;,
we said we anticipated 1.9 coming out by end of year 2024. Oops!
Making promises about when things will happen is hard, especially when work and personal obligations get in the way.
So, I won’t make the same mistake again: we have no promises or hints for when a 1.10 (or a 2.0?) will release.
We do have &lt;a href=&quot;https://github.com/ewels/rich-click/issues/275&quot;&gt;a roadmap&lt;/a&gt; in place for &lt;strong&gt;1.10&lt;/strong&gt;, so we have a good sense of what we want out of future releases.
Will that be next year, or the year after? Will the roadmap change substantially when that time comes? It’s tough to say!&lt;/p&gt;
&lt;p&gt;The ultimate goal of &lt;strong&gt;rich-click&lt;/strong&gt; is to become the most beautiful CLI help text generator out there.
Nearing the end of development for 1.9, I couldn’t help but think of all the ways we can continue to improve on that.
For example, a big limitation of themes are that they mostly use ANSI colors; and the ones which use hex values do not detect the terminal background color. We’d love to have background color detection and intelligently apply colors so that beautiful themes like &lt;code dir=&quot;auto&quot;&gt;nord&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;dracula&lt;/code&gt; look good regardless of the terminal environment.&lt;/p&gt;
&lt;p&gt;But, why spend so much time dwelling on the future, when the present state of things is so great and we’ve barely had time to enjoy it?
We’re &lt;strong&gt;&lt;em&gt;extremely&lt;/em&gt;&lt;/strong&gt; happy with where 1.9 leaves &lt;strong&gt;rich-click&lt;/strong&gt;! And we hope you agree!&lt;/p&gt;
&lt;p&gt;Thank you once again for using &lt;strong&gt;rich-click&lt;/strong&gt;! ❤️❤️❤️❤️❤️&lt;/p&gt;</content:encoded><category>Release notes</category></item><item><title>PyCon Sweden 2024</title><link>https://ewels.github.io/rich-click/latest/blog/pycon-sweden-2024/</link><guid isPermaLink="true">https://ewels.github.io/rich-click/latest/blog/pycon-sweden-2024/</guid><description>Slides and notes from presenting rich-click at PyCon Sweden 2024.</description><pubDate>Fri, 15 Nov 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I had the great pleasure of presenting &lt;strong&gt;rich-click&lt;/strong&gt; at
&lt;a href=&quot;https://www.pycon.se/&quot;&gt;PyCon Sweden 2024&lt;/a&gt; today.
It was my first time attending and a lot of fun!&lt;/p&gt;
&lt;p&gt;You can find my slides below:&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;youtube-video&quot;&gt;YouTube video&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;https://youtu.be/vGSYj_5tGmY&quot;&gt;Watch on YouTube&lt;/a&gt;&lt;/p&gt;
&lt;iframe src=&quot;https://www.youtube.com/embed/vGSYj_5tGmY?si=BJIj4Yx7FjZI5zA3&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; allowfullscreen&gt;&lt;/iframe&gt;
&lt;div&gt;&lt;h2 id=&quot;slides&quot;&gt;Slides&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;../../images/blog/pycon-sweden-2024/Ewels-PyCon-Sweden-2024.pdf&quot;&gt;Open in new tab&lt;/a&gt;&lt;/p&gt;
&lt;iframe src=&quot;../../images/blog/pycon-sweden-2024/Ewels-PyCon-Sweden-2024.pdf&quot; title=&quot;PyCon Sweden 2024 Slides - Phil Ewels&quot;&gt;&lt;/iframe&gt;
&lt;div&gt;&lt;h2 id=&quot;thanks&quot;&gt;Thanks!&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Many thanks to the conference organisers for the opportunity!
And as mentioned in the talk - many thanks to the contributors who
made this project possible.&lt;/p&gt;
</content:encoded><category>Miscellaneous</category></item><item><title>Three cool pre-made styles for your CLI</title><link>https://ewels.github.io/rich-click/latest/blog/three-pre-made-styles/</link><guid isPermaLink="true">https://ewels.github.io/rich-click/latest/blog/three-pre-made-styles/</guid><description>Three copy-and-paste rich-click style configurations, with generated example output for each.</description><pubDate>Wed, 13 Nov 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;rich-click&lt;/strong&gt;’s default style is nice, and naturally it’s what most of our users end up using.
But we won’t be offended if you want to change things up!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;rich-click&lt;/strong&gt; is flexible in terms of the custimisation options it gives you.
In this blog post, we want to highlight a few neat design ideas for your CLI that you can do with &lt;strong&gt;rich-click&lt;/strong&gt;.&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;1-simple-boxless-one-color-cli&quot;&gt;1. Simple boxless one-color CLI&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;You may associate &lt;strong&gt;rich-click&lt;/strong&gt; with boxes, but did you know you can strip the box away?&lt;/p&gt;
&lt;p&gt;Here is an example of a &lt;strong&gt;rich-click&lt;/strong&gt; style that does just that, and produces a nice and clean one-color format:&lt;/p&gt;
&lt;details&gt;&lt;summary&gt;Code for &lt;code&gt;1. Simple boxless one-color CLI&lt;/code&gt;&lt;/summary&gt;&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre data-scb-swatches=&quot;{&amp;#x22;hint&amp;#x22;:&amp;#x22;Click to copy&amp;#x22;,&amp;#x22;copied&amp;#x22;:&amp;#x22;Copied&amp;#x22;,&amp;#x22;copy&amp;#x22;:&amp;#x22;Copy colour {{colour}}&amp;#x22;,&amp;#x22;done&amp;#x22;:&amp;#x22;Copied {{colour}}&amp;#x22;}&quot;&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# /// script&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# dependencies = [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#   &quot;rich-click&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ///&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;help_config &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;click.&lt;/span&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;SIMPLE_HEAD&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;SIMPLE_HEAD&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;options_panel_title&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;[u]Options[/]&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;commands_panel_title&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;[u]Commands[/]&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;blue&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;blue&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_argument&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;blue&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;blue&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_switch&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;blue&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;blue&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;text_markup&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;markdown&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;max_width&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;100&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.group&quot; aria-description=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]. Create a group of subcommands. rich_click API reference.&quot; data-scb-api-head=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a group of subcommands.&quot;&gt;&lt;span&gt;click.group&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;app&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env-file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;click&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Path&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;.env file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;CLI for `app`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;This `app` lets you do cool things.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;db&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Database commands for app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Deploy app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Manage app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/details&gt;
&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/example-1.DDvCex7n_Z1NfemY.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1238&quot; height=&quot;416&quot;&gt;&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;2-dark-mode--light-mode-aware-with-three-colors&quot;&gt;2. Dark mode / light mode aware with three colors&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;For now, neither Rich nor &lt;strong&gt;rich-click&lt;/strong&gt; has a concept of dark mode or light mode.
However, there are third party packages that can detect the background color of most terminals.
Checking the terminal bg makes using RGB hex values much easier.&lt;/p&gt;
&lt;p&gt;Here is an example of such a tool you can use:&lt;/p&gt;
&lt;starlight-tabs data-sync-key=&quot;pkg-manager&quot;&gt;&lt;div&gt;&lt;ul role=&quot;tablist&quot;&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-0&quot; id=&quot;tab-0-0&quot; aria-selected=&quot;true&quot; tabindex=&quot;0&quot;&gt;pip&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-1&quot; id=&quot;tab-0-1&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;uv&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-0-2&quot; id=&quot;tab-0-2&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;Rye&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-0&quot; aria-labelledby=&quot;tab-0-0&quot; role=&quot;tabpanel&quot;&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pip&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;term-background&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-1&quot; aria-labelledby=&quot;tab-0-1&quot; role=&quot;tabpanel&quot; hidden&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;uv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;term-background&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-0-2&quot; aria-labelledby=&quot;tab-0-2&quot; role=&quot;tabpanel&quot; hidden&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;rye&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;term-background&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;rye&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;sync&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;&lt;starlight-tabs-restore&gt;&lt;/starlight-tabs-restore&gt;&lt;/starlight-tabs&gt;
&lt;aside aria-label=&quot;Caution&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;Caution&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;code dir=&quot;auto&quot;&gt;term-background&lt;/code&gt; might not work as expected. It never asks the terminal for its color, so it reports “dark” in most terminals, and it gets the &lt;code dir=&quot;auto&quot;&gt;COLORFGBG&lt;/code&gt; env var backwards when that is set.
&lt;strong&gt;rich-click&lt;/strong&gt; now has built-in detection: use &lt;code dir=&quot;auto&quot;&gt;click.detect_background()&lt;/code&gt;, or a theme pair like &lt;code dir=&quot;auto&quot;&gt;dark:nord-modern,light:solarized-modern&lt;/code&gt;.
See &lt;a href=&quot;../../documentation/themes/#light-and-dark-terminals&quot;&gt;Light and dark terminals&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;The following example looks great in both dark and light terminals!&lt;/p&gt;
&lt;details&gt;&lt;summary&gt;Code for &lt;code&gt;2. Dark mode / light mode aware with three colors&lt;/code&gt;&lt;/summary&gt;&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre data-scb-swatches=&quot;{&amp;#x22;hint&amp;#x22;:&amp;#x22;Click to copy&amp;#x22;,&amp;#x22;copied&amp;#x22;:&amp;#x22;Copied&amp;#x22;,&amp;#x22;copy&amp;#x22;:&amp;#x22;Copy colour {{colour}}&amp;#x22;,&amp;#x22;done&amp;#x22;:&amp;#x22;Copied {{colour}}&amp;#x22;}&quot;&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# /// script&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# dependencies = [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#   &quot;rich-click&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#   &quot;term-background&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ///&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; term_background &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; is_dark_background&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;is_dark_background&lt;/span&gt;&lt;span&gt;():&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;primary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#99bbf2&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#99bbf2&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;secondary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#c099f2&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#c099f2&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;tertiary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#d1d43d&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#d1d43d&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;else&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;primary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#2b569c&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#2b569c&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;secondary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#5c2b9c&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#5c2b9c&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;tertiary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#c4b74f&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#c4b74f&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;help_config &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;click.&lt;/span&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{secondary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_argument&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{tertiary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{primary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_switch&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{secondary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;tertiary_color&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar_separator&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{primary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_helptext_first_line&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_helptext&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option_default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;tertiary_color&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_required_short&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold red&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_required_long&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;red&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;red&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;dim &lt;/span&gt;&lt;span&gt;{secondary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;dim &lt;/span&gt;&lt;span&gt;{primary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;text_markup&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;markdown&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;max_width&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;120&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.group&quot; aria-description=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]. Create a group of subcommands. rich_click API reference.&quot; data-scb-api-head=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a group of subcommands.&quot;&gt;&lt;span&gt;click.group&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;app&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env-file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;click&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Path&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;.env file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;CLI for `app`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;This `app` lets you do cool things.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;db&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Database commands for app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Deploy app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Manage app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/details&gt;
&lt;starlight-tabs&gt;&lt;div&gt;&lt;ul role=&quot;tablist&quot;&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-1-0&quot; id=&quot;tab-1-0&quot; aria-selected=&quot;true&quot; tabindex=&quot;0&quot;&gt;Dark mode&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-1-1&quot; id=&quot;tab-1-1&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;Light mode&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-1-0&quot; aria-labelledby=&quot;tab-1-0&quot; role=&quot;tabpanel&quot; tabindex=&quot;0&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/example-2-dark.C_T82-FZ_1spUqm.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;964&quot; height=&quot;330&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-1-1&quot; aria-labelledby=&quot;tab-1-1&quot; role=&quot;tabpanel&quot; tabindex=&quot;0&quot; hidden&gt;&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/example-2-light.DxSlBRBo_1e0TXq.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;964&quot; height=&quot;330&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;/starlight-tabs&gt;
&lt;div&gt;&lt;h2 id=&quot;3-gradient-art-header&quot;&gt;3. Gradient art header&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;The following example combines ideas from the first two examples, and then adds in &lt;code dir=&quot;auto&quot;&gt;text2art&lt;/code&gt; from the &lt;code dir=&quot;auto&quot;&gt;art&lt;/code&gt; package with &lt;code dir=&quot;auto&quot;&gt;Gradient&lt;/code&gt; from the &lt;code dir=&quot;auto&quot;&gt;rich-gradient&lt;/code&gt; package.&lt;/p&gt;
&lt;p&gt;The below example requires &lt;code dir=&quot;auto&quot;&gt;rich-click&gt;=1.8.4&lt;/code&gt;, as previous versions do not support &lt;code dir=&quot;auto&quot;&gt;Gradient()&lt;/code&gt; objects for the &lt;code dir=&quot;auto&quot;&gt;header_text&lt;/code&gt;.&lt;/p&gt;
&lt;starlight-tabs data-sync-key=&quot;pkg-manager&quot;&gt;&lt;div&gt;&lt;ul role=&quot;tablist&quot;&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-2-0&quot; id=&quot;tab-2-0&quot; aria-selected=&quot;true&quot; tabindex=&quot;0&quot;&gt;pip&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-2-1&quot; id=&quot;tab-2-1&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;uv&lt;/a&gt;&lt;/li&gt;&lt;li role=&quot;presentation&quot;&gt;&lt;a role=&quot;tab&quot; href=&quot;#tab-panel-2-2&quot; id=&quot;tab-2-2&quot; aria-selected=&quot;false&quot; tabindex=&quot;-1&quot;&gt;Rye&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-2-0&quot; aria-labelledby=&quot;tab-2-0&quot; role=&quot;tabpanel&quot;&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pip&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;term-background&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;art&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;rich-gradient&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-2-1&quot; aria-labelledby=&quot;tab-2-1&quot; role=&quot;tabpanel&quot; hidden&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;uv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;term-background&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;art&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;rich-gradient&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;tab-panel-2-2&quot; aria-labelledby=&quot;tab-2-2&quot; role=&quot;tabpanel&quot; hidden&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;rye&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;term-background&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;rye&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;art&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;rye&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;rich-gradient&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;rye&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;sync&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;&lt;starlight-tabs-restore&gt;&lt;/starlight-tabs-restore&gt;&lt;/starlight-tabs&gt;
&lt;details&gt;&lt;summary&gt;Code for &lt;code&gt;3. Gradient art header&lt;/code&gt;&lt;/summary&gt;&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre data-scb-swatches=&quot;{&amp;#x22;hint&amp;#x22;:&amp;#x22;Click to copy&amp;#x22;,&amp;#x22;copied&amp;#x22;:&amp;#x22;Copied&amp;#x22;,&amp;#x22;copy&amp;#x22;:&amp;#x22;Copy colour {{colour}}&amp;#x22;,&amp;#x22;done&amp;#x22;:&amp;#x22;Copied {{colour}}&amp;#x22;}&quot;&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# /// script&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# dependencies = [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#   &quot;rich-click&gt;=1.8.4&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#   &quot;term-background&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#   &quot;art&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#   &quot;rich-gradient&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# ///&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; art &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; text2art&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; rich_gradient &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://maxludden.github.io/rich-gradient/gradient_ref/#rich_gradient.gradient.Gradient&quot; aria-description=&quot;class rich_gradient.Gradient. rich-gradient 0.0.0 documentation.&quot; data-scb-api-head=&quot;class rich_gradient.Gradient&quot; data-scb-api-source=&quot;rich-gradient 0.0.0 documentation&quot;&gt;&lt;span&gt;Gradient&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; term_background &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; is_dark_background&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;is_dark_background&lt;/span&gt;&lt;span&gt;():&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;primary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#99ff00&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#99ff00&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;secondary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#ffdd00&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#ffdd00&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;else&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;primary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#77bb22&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#77bb22&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;secondary_color &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;#aa9922&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;#aa9922&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;help_config &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;click.&lt;/span&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;SIMPLE&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;SIMPLE&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{secondary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_argument&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;secondary_color&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;primary_color&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;options_panel_title&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;[u]Options[/]&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;commands_panel_title&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;[u]Commands[/]&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_switch&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;secondary_color&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;header_text&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href=&quot;https://maxludden.github.io/rich-gradient/gradient_ref/#rich_gradient.gradient.Gradient&quot; aria-description=&quot;class rich_gradient.Gradient. rich-gradient 0.0.0 documentation.&quot; data-scb-api-head=&quot;class rich_gradient.Gradient&quot; data-scb-api-source=&quot;rich-gradient 0.0.0 documentation&quot;&gt;&lt;span&gt;Gradient&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;text2art&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;My App&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;colors&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;primary_color, secondary_color&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar_separator&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{primary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_helptext_first_line&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_helptext&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option_default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_required_short&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_required_long&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{secondary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&quot;bold &lt;/span&gt;&lt;span&gt;{primary_color}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;text_markup&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;markdown&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;max_width&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;120&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.group&quot; aria-description=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]. Create a group of subcommands. rich_click API reference.&quot; data-scb-api-head=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a group of subcommands.&quot;&gt;&lt;span&gt;click.group&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;app&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env-file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;click&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Path&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;.env file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;CLI for `app`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;This `app` lets you do cool things.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;db&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Database commands for app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Deploy app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Manage app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/details&gt;
&lt;p&gt;&lt;img src=&quot;https://ewels.github.io/rich-click/latest/_astro/example-3.WnCOYT_k_1G63yV.svg&quot; alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1482&quot; height=&quot;611&quot;&gt;&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;parting-notes&quot;&gt;Parting notes&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Thank you for reading, and I hope you find this blog helpful and inspiring.&lt;/p&gt;
&lt;p&gt;Phil and I have been really busy on a bunch of other things, but we haven’t forgotten about our roadmap for &lt;strong&gt;rich-click&lt;/strong&gt; 1.9.
We hope to get &lt;code dir=&quot;auto&quot;&gt;1.9.0&lt;/code&gt; released by the middle of 2025.
Stay tuned for more updates!&lt;/p&gt;
&lt;p&gt;Lastly, if you are attending &lt;a href=&quot;https://www.pycon.se/&quot;&gt;PyCon Sweden&lt;/a&gt; on November 14-15, 2024, be sure to check out &lt;a href=&quot;https://pretalx.com/pyconse-2024/talk/XP7GWN/&quot;&gt;Phil Ewels’ talk about &lt;strong&gt;rich-click&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;</content:encoded><category>Miscellaneous</category></item><item><title>New blog + v1.8 released!</title><link>https://ewels.github.io/rich-click/latest/blog/version-1.8/</link><guid isPermaLink="true">https://ewels.github.io/rich-click/latest/blog/version-1.8/</guid><description>rich-click 1.8 lands alongside a new documentation site and Live Style Editor: SVG and HTML output from the CLI, an easier decorator API, more style options and better performance.</description><pubDate>Tue, 30 Apr 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Today we are very happy to release version 1.8 of rich-click,
and along with it - this blog!&lt;/p&gt;

&lt;div&gt;&lt;h2 id=&quot;new-docs-website-and-blog&quot;&gt;New docs website and blog&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;Until now, &lt;strong&gt;rich-click&lt;/strong&gt; has just had a GitHub repo and all documentation has been in the README. Now, we have full docs! We’ve fleshed out the documentation from the README, and we’ll continue to add to it over time.&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;live-style-editor&quot;&gt;Live Style Editor&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;The coolest addition allowed by this change to full documentation is the &lt;a href=&quot;https://ewels.github.io/rich-click/latest/editor&quot;&gt;Live Style Editor&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We built this to address a problem we noticed, which is that the vast majority of users rely on the default &lt;strong&gt;rich-click&lt;/strong&gt; styles.
Although we do think &lt;strong&gt;rich-click&lt;/strong&gt;’s defaults are pretty good, it pointed to a potential developer experience issue that so many CLIs relied on the defaults.
We hope that the live style editor makes it easier for users to make style changes and to personalize their CLIs. 😁&lt;/p&gt;
&lt;p&gt;Here is an example of a style that Phil made with the style editor:&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;Phil&apos;s Generated Code&lt;/summary&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre data-scb-swatches=&quot;{&amp;#x22;hint&amp;#x22;:&amp;#x22;Click to copy&amp;#x22;,&amp;#x22;copied&amp;#x22;:&amp;#x22;Copied&amp;#x22;,&amp;#x22;copy&amp;#x22;:&amp;#x22;Copy colour {{colour}}&amp;#x22;,&amp;#x22;done&amp;#x22;:&amp;#x22;Copied {{colour}}&amp;#x22;}&quot;&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;help_config &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;click.&lt;/span&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold cyan&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_argument&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold cyan&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold green&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_switch&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold green&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;green&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;green&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar_separator&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold italic magenta&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold yellow&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_helptext_first_line&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold italic white&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_helptext&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim italic yellow&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option_default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold yellow&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_required_short&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold red&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_required_long&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold red&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;italic blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;italic blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.group&quot; aria-description=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]. Create a group of subcommands. rich_click API reference.&quot; data-scb-api-head=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a group of subcommands.&quot;&gt;&lt;span&gt;click.group&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;my-command&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--bar&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-b&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Lorem ipsum&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;show_default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;someval&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--baz&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;required&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Choose wisely&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;click&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Choice&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;b&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;bar&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Help text for CLI&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Second line of help text.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;subcommand&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;subcommand&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;bar&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Help text for subcommand&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;/details&gt;
&lt;p&gt;&lt;img alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;392&quot; src=&quot;https://ewels.github.io/rich-click/latest/_astro/phils_example.ClP8a0Nl_Z7P3B.svg&quot;&gt;&lt;/p&gt;
&lt;p&gt;And here’s one that Daniel made:&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;Daniel&apos;s Generated Code&lt;/summary&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre data-scb-swatches=&quot;{&amp;#x22;hint&amp;#x22;:&amp;#x22;Click to copy&amp;#x22;,&amp;#x22;copied&amp;#x22;:&amp;#x22;Copied&amp;#x22;,&amp;#x22;copy&amp;#x22;:&amp;#x22;Copy colour {{colour}}&amp;#x22;,&amp;#x22;done&amp;#x22;:&amp;#x22;Copied {{colour}}&amp;#x22;}&quot;&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;help_config &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;click.&lt;/span&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold magenta&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_argument&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold yellow&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_switch&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold magenta&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;yellow&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;yellow&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar_separator&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold blue&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_helptext_first_line&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_helptext&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option_default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;yellow&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;yellow&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_required_short&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold red&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_required_long&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;red&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;red&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;magenta&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;magenta&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;blue&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;blue&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.group&quot; aria-description=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]. Create a group of subcommands. rich_click API reference.&quot; data-scb-api-head=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a group of subcommands.&quot;&gt;&lt;span&gt;click.group&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;my-command&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--bar&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-b&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Lorem ipsum&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;show_default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;someval&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--baz&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;required&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Choose wisely&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;click&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Choice&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;b&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;bar&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Help text for CLI&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Second line of help text.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;subcommand&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;subcommand&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;bar&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Help text for subcommand&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;/details&gt;
&lt;p&gt;&lt;img alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;392&quot; src=&quot;https://ewels.github.io/rich-click/latest/_astro/daniels_example.BTRRF9wm_Z7P3B.svg&quot;&gt;&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;rich-click-version-18&quot;&gt;&lt;strong&gt;rich-click&lt;/strong&gt; version 1.8&lt;/h2&gt;&lt;/div&gt;
&lt;div&gt;&lt;h3 id=&quot;generate-html-and-svg-with-the-rich-click-cli&quot;&gt;Generate HTML and SVG with the &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; CLI&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;The &lt;code dir=&quot;auto&quot;&gt;rich-click&lt;/code&gt; CLI now allows for &lt;code dir=&quot;auto&quot;&gt;--output svg&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;--output html&lt;/code&gt; to help easily generate outputs for READMEs and docs:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;rich-click&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--output&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;svg&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;path.to.my.cli:main&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;img alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1482&quot; height=&quot;392&quot; src=&quot;https://ewels.github.io/rich-click/latest/_astro/output_to_svg.d1cf5lQS_Z1kMKXF.svg&quot;&gt;&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;easier-decorator-api&quot;&gt;Easier decorator API&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;The &lt;code dir=&quot;auto&quot;&gt;rich_config()&lt;/code&gt; decorator API is now easier to use:
You can pass a &lt;code dir=&quot;auto&quot;&gt;dict&lt;/code&gt; into the &lt;code dir=&quot;auto&quot;&gt;@click.rich_config()&lt;/code&gt; decorator. E.g.:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.command&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.rich_config&lt;/span&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;max_width&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;100&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;my_command&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Additionally, &lt;code dir=&quot;auto&quot;&gt;dict&lt;/code&gt;s behave a little differently than &lt;code dir=&quot;auto&quot;&gt;RichHelpConfiguration&lt;/code&gt; when dealing with parents,
and this behavior can be useful in some contexts.
Basically, the child command uses the parent’s help config as a baseline, and only updates the fields specified in the dict.
So in the following example, &lt;code dir=&quot;auto&quot;&gt;my_group&lt;/code&gt; will have &lt;code dir=&quot;auto&quot;&gt;style_option=&quot;red&quot;&lt;/code&gt;, and &lt;code dir=&quot;auto&quot;&gt;my_subcommand&lt;/code&gt; will have &lt;em&gt;both&lt;/em&gt; &lt;code dir=&quot;auto&quot;&gt;style_option=&quot;red&quot;&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;style_argument=&quot;green&quot;&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre data-scb-swatches=&quot;{&amp;#x22;hint&amp;#x22;:&amp;#x22;Click to copy&amp;#x22;,&amp;#x22;copied&amp;#x22;:&amp;#x22;Copied&amp;#x22;,&amp;#x22;copy&amp;#x22;:&amp;#x22;Copy colour {{colour}}&amp;#x22;,&amp;#x22;done&amp;#x22;:&amp;#x22;Copied {{colour}}&amp;#x22;}&quot;&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.group&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.rich_config&lt;/span&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;style_option&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;red&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;red&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;my_group&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@my_group.command&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.rich_config&lt;/span&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;style_argument&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;green&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;green&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;my_subcommand&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This can be a little confusing, so we’ve defined explicit rules (and enforced them in unit tests) for how the config is resolved (these are also in our docs):&lt;/p&gt;
&lt;pre dir=&quot;ltr&quot;&gt;flowchart TD
A[&quot;Did you pass in a @rich_config(help_config=...)?&quot;]
A --&gt; |Yes| Ayes
A --&gt; |No| Ano

Ayes[&quot;Was it a dict or a RichHelpConfiguration?&quot;]

Ayes --&gt; |dict| AyesBdict
Ayes --&gt; |RichHelpConfiguration| AyesBrhc

AyesBdict[&quot;Is there a &apos;parent&apos; config?&quot;]

AyesBdict --&gt; |Yes| AyesBdictCyes
AyesBdict --&gt; |No| AyesBdictCno

AyesBdictCyes:::StoppingPoint
AyesBdictCyes[&quot;Merge into the parent config,\nand use that&quot;]

AyesBdictCno:::StoppingPoint
AyesBdictCno[&quot;Merge into the global config,\nand use that&quot;]

AyesBrhc:::StoppingPoint
AyesBrhc[&quot;Use the RichHelpConfiguration  object.\n\n(Note: RichHelpConfiguration&apos;s\ndefaults are independent of the\nglobal config.)&quot;]

Ano[&quot;Is there a &apos;parent&apos; config?&quot;]

Ano --&gt; |Yes| AnoByes
Ano --&gt; |No| AnoBno

AnoByes:::StoppingPoint
AnoByes[&quot;Use the parent config&quot;]

AnoBno:::StoppingPoint
AnoBno[&quot;Use the global config&quot;]

classDef StoppingPoint font-weight: 600;&lt;/pre&gt;
&lt;div&gt;&lt;h3 id=&quot;more-style-options&quot;&gt;More style options&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;The biggest addition to &lt;strong&gt;rich-click&lt;/strong&gt;’s styling options was control over panel styles:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;STYLE_OPTIONS_PANEL_BOX&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;STYLE_COMMANDS_PANEL_BOX&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;STYLE_ERRORS_PANEL_BOX&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here’s a silly example of what this can do:&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;Code for silly example&lt;/summary&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;help_config &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;click.&lt;/span&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;ASCII&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;HEAVY&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.group&quot; aria-description=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]. Create a group of subcommands. rich_click API reference.&quot; data-scb-api-head=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a group of subcommands.&quot;&gt;&lt;span&gt;click.group&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;app&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env-file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;click&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Path&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;.env file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;CLI for `app`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;This `app` lets you do cool things.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;db&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Database commands for app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Deploy app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Manage app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;/details&gt;
&lt;p&gt;&lt;img alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;416&quot; src=&quot;https://ewels.github.io/rich-click/latest/_astro/boxes_silly.D6neGPuC_12rlaQ.svg&quot;&gt;&lt;/p&gt;
&lt;p&gt;Here’s a simple, stylish, and sleek example that would look great in your app:&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;Code for stylish example&lt;/summary&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre data-scb-swatches=&quot;{&amp;#x22;hint&amp;#x22;:&amp;#x22;Click to copy&amp;#x22;,&amp;#x22;copied&amp;#x22;:&amp;#x22;Copied&amp;#x22;,&amp;#x22;copy&amp;#x22;:&amp;#x22;Copy colour {{colour}}&amp;#x22;,&amp;#x22;done&amp;#x22;:&amp;#x22;Copied {{colour}}&amp;#x22;}&quot;&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;help_config &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;click.&lt;/span&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;SIMPLE_HEAD&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_table_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;SIMPLE_HEAD&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;SIMPLE_HEAD&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_table_box&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;SIMPLE_HEAD&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_options_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;options_panel_title&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;[u]Options[/]&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;use_rich_markup&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_commands_panel_border&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bold&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;commands_panel_title&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;[u]Commands[/]&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_option&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;green&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;green&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_usage_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_argument&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;green&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;green&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_switch&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim green&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_command&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span data-scb-colour=&quot;green&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;&lt;span&gt;green&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;style_metavar&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.group&quot; aria-description=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]. Create a group of subcommands. rich_click API reference.&quot; data-scb-api-head=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a group of subcommands.&quot;&gt;&lt;span&gt;click.group&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;app&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--env-file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;click&lt;/span&gt;&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;Path&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;help&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;.env file&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;CLI for `app`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;This `app` lets you do cool things.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;db&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Database commands for app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;deploy&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Deploy app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;span&gt;Manage app&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;/details&gt;
&lt;p&gt;&lt;img alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;514&quot; src=&quot;https://ewels.github.io/rich-click/latest/_astro/boxes_sleek.my2Qxpzx_ZVrudv.svg&quot;&gt;&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;improvements-to-option-and-command-group-api&quot;&gt;Improvements to option and command group API&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;The option groups and command groups are a very powerful and useful feature, but historically they’ve been tricky to work with.
The changes we’ve made in 1.8 improve on the API in a few substantial ways.&lt;/p&gt;
&lt;div&gt;&lt;h4 id=&quot;better-command-path-resolution&quot;&gt;Better command path resolution&lt;/h4&gt;&lt;/div&gt;
&lt;p&gt;First, group keys used to only read from the &lt;code dir=&quot;auto&quot;&gt;ctx.command_path&lt;/code&gt;.
Now they read from the &lt;code dir=&quot;auto&quot;&gt;ctx.command_path&lt;/code&gt; and the &lt;code dir=&quot;auto&quot;&gt;ctx.command.name&lt;/code&gt; (or the &lt;code dir=&quot;auto&quot;&gt;f&quot;{ctx.parent.command.name} {ctx.command.name}&quot;&lt;/code&gt; for subcommands).
This should cause fewer headaches for users!&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;Longer explanation&lt;/summary&gt;
&lt;p&gt;What this means in practical terms is easier to explain by example.
For example, the command path for &lt;code dir=&quot;auto&quot;&gt;python hello.py --name world&lt;/code&gt; is &lt;code dir=&quot;auto&quot;&gt;hello.py&lt;/code&gt;,
but if you were to set &lt;code dir=&quot;auto&quot;&gt;hello&lt;/code&gt; as a console script entry point in your &lt;code dir=&quot;auto&quot;&gt;pyproject.toml&lt;/code&gt; or &lt;code dir=&quot;auto&quot;&gt;setup.py&lt;/code&gt;,
then the command path for &lt;code dir=&quot;auto&quot;&gt;hello --name world&lt;/code&gt; would become &lt;code dir=&quot;auto&quot;&gt;hello&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This causes an annoying issue where running &lt;code dir=&quot;auto&quot;&gt;python my_script.py&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;venv/bin/my_script&lt;/code&gt; had different behaviors,
and it was also unintuitive that the name of the CLI didn’t always work, even when it’s not an entry point.&lt;/p&gt;
&lt;p&gt;Now, both approaches work! 😊&lt;/p&gt;
&lt;/details&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;svg data-scb-file-icon=&quot;plain&quot; data-scb-file-icon-name=&quot;file-type-python&quot; data-scb-file-icon-coloured=&quot;&quot; data-scb-file-icon-set=&quot;vscode-icons&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot; viewBox=&quot;0 0 32 32&quot; fill=&quot;currentColor&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;scb-file-type-python-SVGg4rxgcri&quot; x1=&quot;-133.268&quot; x2=&quot;-133.198&quot; y1=&quot;-202.91&quot; y2=&quot;-202.84&quot; gradientTransform=&quot;matrix(189.38 0 0 189.81 25243.061 38519.17)&quot; gradientUnits=&quot;userSpaceOnUse&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#387eb8&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#366994&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;linearGradient id=&quot;scb-file-type-python-SVG5ouQmWbV&quot; x1=&quot;-133.575&quot; x2=&quot;-133.495&quot; y1=&quot;-203.203&quot; y2=&quot;-203.133&quot; gradientTransform=&quot;matrix(189.38 0 0 189.81 25309.061 38583.42)&quot; gradientUnits=&quot;userSpaceOnUse&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#ffe052&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#ffc331&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;path fill=&quot;url(#scb-file-type-python-SVGg4rxgcri)&quot; d=&quot;M15.885 2.1c-7.1 0-6.651 3.07-6.651 3.07v3.19h6.752v1H6.545S2 8.8 2 16.005s4.013 6.912 4.013 6.912H8.33v-3.361s-.13-4.013 3.9-4.013h6.762s3.772.06 3.772-3.652V5.8s.572-3.712-6.842-3.712Zm-3.732 2.137a1.214 1.214 0 1 1-1.183 1.244v-.02a1.214 1.214 0 0 1 1.214-1.214Z&quot;&gt;&lt;/path&gt;&lt;path fill=&quot;url(#scb-file-type-python-SVG5ouQmWbV)&quot; d=&quot;M16.085 29.91c7.1 0 6.651-3.08 6.651-3.08v-3.18h-6.751v-1h9.47S30 23.158 30 15.995s-4.013-6.912-4.013-6.912H23.64V12.4s.13 4.013-3.9 4.013h-6.765S9.2 16.356 9.2 20.068V26.2s-.572 3.712 6.842 3.712h.04Zm3.732-2.147A1.214 1.214 0 1 1 21 26.519v.03a1.214 1.214 0 0 1-1.214 1.214z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;cli.py&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Pick your poison 🧪 Both approaches now work!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_click/#rich_click.rich_click.COMMAND_GROUPS&quot; aria-description=&quot;COMMAND_GROUPS: dict[str, list[CommandGroupDict]] = {}. rich_click API reference.&quot; data-scb-api-head=&quot;COMMAND_GROUPS: dict[str, list[CommandGroupDict]] = {}&quot; data-scb-api-source=&quot;rich_click API reference&quot;&gt;&lt;span&gt;click.rich_click.&lt;/span&gt;&lt;span&gt;COMMAND_GROUPS&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;super-cool-tool&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;,  &lt;/span&gt;&lt;span&gt;# `ctx.command.name`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;cli.py&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;# `ctx.command_path` when running &quot;python cli.py&quot;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.command&quot; aria-description=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]. Create a command. rich_click API reference.&quot; data-scb-api-head=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a command.&quot;&gt;&lt;span&gt;click.command&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;super-cool-tool&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;main&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;h4 id=&quot;wildcards&quot;&gt;Wildcards&lt;/h4&gt;&lt;/div&gt;
&lt;p&gt;Wildcards now also work, in case you want to globally define options or simply don’t want to bother spelling out the whole command path.&lt;/p&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_click/#rich_click.rich_click.COMMAND_GROUPS&quot; aria-description=&quot;COMMAND_GROUPS: dict[str, list[CommandGroupDict]] = {}. rich_click API reference.&quot; data-scb-api-head=&quot;COMMAND_GROUPS: dict[str, list[CommandGroupDict]] = {}&quot; data-scb-api-source=&quot;rich_click API reference&quot;&gt;&lt;span&gt;click.rich_click.&lt;/span&gt;&lt;span&gt;COMMAND_GROUPS&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.command&quot; aria-description=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]. Create a command. rich_click API reference.&quot; data-scb-api-head=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a command.&quot;&gt;&lt;span&gt;click.command&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;super-cool-tool&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;main&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;You can also stick wildcards in the front, middle, or end of a key, e.g.:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;cli sub-command *&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;cli * sub-sub-command&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;* sub-command *&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;details&gt;
&lt;summary&gt;Long example&lt;/summary&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;svg data-scb-file-icon=&quot;plain&quot; data-scb-file-icon-name=&quot;file-type-python&quot; data-scb-file-icon-coloured=&quot;&quot; data-scb-file-icon-set=&quot;vscode-icons&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot; viewBox=&quot;0 0 32 32&quot; fill=&quot;currentColor&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;scb-file-type-python-SVGg4rxgcri&quot; x1=&quot;-133.268&quot; x2=&quot;-133.198&quot; y1=&quot;-202.91&quot; y2=&quot;-202.84&quot; gradientTransform=&quot;matrix(189.38 0 0 189.81 25243.061 38519.17)&quot; gradientUnits=&quot;userSpaceOnUse&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#387eb8&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#366994&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;linearGradient id=&quot;scb-file-type-python-SVG5ouQmWbV&quot; x1=&quot;-133.575&quot; x2=&quot;-133.495&quot; y1=&quot;-203.203&quot; y2=&quot;-203.133&quot; gradientTransform=&quot;matrix(189.38 0 0 189.81 25309.061 38583.42)&quot; gradientUnits=&quot;userSpaceOnUse&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#ffe052&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#ffc331&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;path fill=&quot;url(#scb-file-type-python-SVGg4rxgcri)&quot; d=&quot;M15.885 2.1c-7.1 0-6.651 3.07-6.651 3.07v3.19h6.752v1H6.545S2 8.8 2 16.005s4.013 6.912 4.013 6.912H8.33v-3.361s-.13-4.013 3.9-4.013h6.762s3.772.06 3.772-3.652V5.8s.572-3.712-6.842-3.712Zm-3.732 2.137a1.214 1.214 0 1 1-1.183 1.244v-.02a1.214 1.214 0 0 1 1.214-1.214Z&quot;&gt;&lt;/path&gt;&lt;path fill=&quot;url(#scb-file-type-python-SVG5ouQmWbV)&quot; d=&quot;M16.085 29.91c7.1 0 6.651-3.08 6.651-3.08v-3.18h-6.751v-1h9.47S30 23.158 30 15.995s-4.013-6.912-4.013-6.912H23.64V12.4s.13 4.013-3.9 4.013h-6.765S9.2 16.356 9.2 20.068V26.2s-.572 3.712 6.842 3.712h.04Zm3.732-2.147A1.214 1.214 0 1 1 21 26.519v.03a1.214 1.214 0 0 1-1.214 1.214z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;foo.py&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_click/#rich_click.rich_click.OPTION_GROUPS&quot; aria-description=&quot;OPTION_GROUPS: dict[str, list[OptionGroupDict]] = {}. rich_click API reference.&quot; data-scb-api-head=&quot;OPTION_GROUPS: dict[str, list[OptionGroupDict]] = {}&quot; data-scb-api-source=&quot;rich_click API reference&quot;&gt;&lt;span&gt;click.rich_click.&lt;/span&gt;&lt;span&gt;OPTION_GROUPS&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;cli * c&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;            &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;            &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;options&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.group&quot; aria-description=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]. Create a group of subcommands. rich_click API reference.&quot; data-scb-api-head=&quot;def group(name: str | _AnyCallable | None = None, cls: type[G] | None = None, **attrs: Any) -&gt; Group | Callable[[_AnyCallable], RichGroup | G]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a group of subcommands.&quot;&gt;&lt;span&gt;click.group&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.group&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@x.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;xa&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@x.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;b&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;xb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@x.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;xc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.group&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@y.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ya&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@y.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;b&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;yb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@y.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;yc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@cli.group&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;z&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;z&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@z.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;za&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@z.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;b&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;zb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@z.command&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag1&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--flag2&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;zc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;flag1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;flag2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This works the way you’d expect:&lt;/p&gt;
&lt;div&gt;&lt;figure data-scb-shell-copy=&quot;&quot; aria-label=&quot;Terminal window&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;$ &lt;/span&gt;&lt;span&gt;python foo.py x c --help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt; &lt;/span&gt;Usage: foo.py x c [OPTIONS]&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;╭─ foo ──────────────────────────────────────────────────────────────────────────────╮&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;│ --flag1    TEXT                                                                    │&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;╰────────────────────────────────────────────────────────────────────────────────────╯&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;╭─ Options ──────────────────────────────────────────────────────────────────────────╮&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;│ --flag2    TEXT                                                                    │&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;│ --help           Show this message and exit.                                       │&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;╰────────────────────────────────────────────────────────────────────────────────────╯&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;$ &lt;/span&gt;&lt;span&gt;python foo.py x b --help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt; &lt;/span&gt;Usage: foo.py x b [OPTIONS]&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;╭─ Options ───────────────────────────────────────────────────────────────────────────╮&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;│ --flag1    TEXT                                                                     │&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;│ --flag2    TEXT                                                                     │&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;│ --help           Show this message and exit.                                        │&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;╰─────────────────────────────────────────────────────────────────────────────────────╯&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;/details&gt;
&lt;div&gt;&lt;h4 id=&quot;panel_styles--arguments-panel-styling&quot;&gt;&lt;code dir=&quot;auto&quot;&gt;panel_styles&lt;/code&gt; + Arguments panel styling&lt;/h4&gt;&lt;/div&gt;
&lt;p&gt;The dicts for command+option groups now accept an optional &lt;code dir=&quot;auto&quot;&gt;panel_styles&lt;/code&gt; key, which passes kwargs to the &lt;code dir=&quot;auto&quot;&gt;Panel()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Another handy feature is that the “Arguments” panel (which is created when the config option &lt;code dir=&quot;auto&quot;&gt;show_arguments&lt;/code&gt; is &lt;code dir=&quot;auto&quot;&gt;True&lt;/code&gt;)
can now be stylized through the API so long as the following is true:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;config.show_arguments&lt;/code&gt; is &lt;code dir=&quot;auto&quot;&gt;True&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;There is an option group with a &lt;code dir=&quot;auto&quot;&gt;name&lt;/code&gt; equal to the &lt;code dir=&quot;auto&quot;&gt;config.arguments_panel_title&lt;/code&gt; (default: &lt;code dir=&quot;auto&quot;&gt;&apos;Arguments&apos;&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;The option group does not have any &lt;code dir=&quot;auto&quot;&gt;options&lt;/code&gt; (The list is empty, undefined, or &lt;code dir=&quot;auto&quot;&gt;None&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot; data-scb-api-icons=&quot;{&amp;#x22;rich&amp;#x22;:&amp;#x22;M9.419 10.32v-.645c0-.531.437-.968.968-.968h3.225c.204 0 .395.065.552.175a2.295 2.295 0 0 0-.904.47h-2.873c-.177 0-.323.146-.323.323v3.224c0 .177.146.323.323.323h2.921l.048.067v.578h-2.969c-.531 0-.968-.437-.968-.968v-1.934h-5.13l.08.967h3.115v.645H4.423l.058.698c.651.192 1.323.309 2.001.347.901.038 1.789.229 2.625.564.138.04.244.146.288.276a4.183 4.183 0 0 0-1.771-.395H6.88c-.25 0-.485.065-.688.18a9.4449 9.4449 0 0 1-1.654-.286l.147 1.772c.267-.044.533-.095.798-.15.018.224.09.434.203.616-.314.067-.63.127-.947.179l.09 1.09c.03.332.31.589.643.591h2.101c-.335.14-.626.364-.846.645H5.472c-.666-.003-1.226-.519-1.285-1.183l-.548-6.556H2.358l.758 7.578c.081.821.78 1.453 1.605 1.451h1.565c.001.121.012.239.033.355-.293.04-.566.141-.806.29h-.792c-1.155.004-2.134-.882-2.246-2.032l-.794-7.933c-.001-.01-.001-.021-.001-.032 0-.088.036-.169.094-.228l2.58-2.58a.324.324 0 0 1 .228-.094h1.023a.9628.9628 0 0 1-.056-.323c0-.435.294-.819.713-.933a.9928.9928 0 0 1-.068-.357c0-.53.437-.967.968-.967h1.29c.531 0 .967.437.967.967 0 .099-.015.198-.045.293a.976.976 0 0 1 .436-.258.9719.9719 0 0 1-.068-.357c0-.531.437-.968.967-.968h1.29c.531 0 .968.437.968.968 0 .11-.019.219-.055.322h1.667c.331 0 .639.17.816.449a.9527.9527 0 0 1 .474-.126h2.58c.531 0 .968.436.968.967 0 .11-.019.219-.056.323h.461l-.282-.174 1.876-3.051h-2.645V3.87h.637a5.077 5.077 0 0 0-.027-.323c-.64-.002-.853-.011-1.57-.04l-.09-.004a2.6858 2.6858 0 0 1-.673-.089.4482.4482 0 0 1-.267-.189.4067.4067 0 0 1-.041-.282.455.455 0 0 1 .238-.274c.059-.032.12-.062.181-.089h-3.87v1.29h4.837v.645H2.579l1.087 1.766-.549.338-1.389-2.258a.3145.3145 0 0 1-.048-.169C1.68 1.802 3.205 0 5.227 0h.078c.403 0 .747.275.855.645h11.679c.107-.37.451-.645.854-.645h.078c2.023 0 3.548 1.802 3.548 4.192a.318.318 0 0 1-.067.196L20.191 7.74h.193c.53 0 .967.437.967.967 0 .224-.078.441-.22.614l1.083 1.082c.065.06.106.145.106.239 0 .011 0 .022-.001.032l-.794 7.933c-.11 1.131-1.059 2.006-2.188 2.032a2.053 2.053 0 0 0-.805-.29c.021-.116.032-.234.032-.355h.714c.824.002 1.524-.63 1.604-1.451l.76-7.578h-1.283l-.546 6.556c-.059.664-.62 1.18-1.287 1.183h-.403c-.094-.12-.201-.23-.319-.328v-.317h.722c.333-.002.613-.259.643-.591l.004-.054c-.578 0-1.099-.002-1.636-.018v-.645c.553.017 1.091.018 1.69.018l.08-.96c-.666.022-1.243.098-1.77.237v-.665c.549-.13 1.145-.201 1.824-.219l.081-.971c-.637.008-1.272.043-1.905.105v-.647a23.275 23.275 0 0 1 1.958-.103l.081-.969h-1.521c.134-.2.234-.417.298-.645h1.276l.081-.967h-1.276a2.2538 2.2538 0 0 0-.129-.645h2.079c.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-1.935a.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-2.58a.321.321 0 0 0-.277.161c-.057.1-.164.161-.279.161h-.089a.323.323 0 0 1-.322-.322c0-.177-.146-.323-.323-.323h-2.58a.323.323 0 0 1-.322-.322c0-.177.145-.323.322-.323.177 0 .323-.145.323-.322 0-.177-.146-.323-.323-.323h-1.29c-.177 0-.322.146-.322.323 0 .177.145.322.322.322.177 0 .323.146.323.323 0 .177-.146.322-.323.322h-.645a.323.323 0 0 0-.302.218.3227.3227 0 0 1-.305.215.327.327 0 0 1-.179-.054.3172.3172 0 0 0-.181-.056h-.645a.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-1.29c-.177 0-.323.145-.323.322 0 .177.146.323.323.323.177 0 .322.145.322.322 0 .177-.145.323-.322.323h-.645c-.177 0-.323.145-.323.322 0 .177.146.323.323.323.177 0 .322.145.322.322 0 .177-.145.323-.322.323H4.904c-.176 0-.322.145-.322.322 0 .177.146.323.322.323.177 0 .323.145.323.322 0 .177-.146.323-.323.323H4.26c-.177 0-.323.145-.323.322 0 .177.146.323.323.323h1.289a.3117.3117 0 0 0 .081-.013.3177.3177 0 0 1 .162 0c.026.007.053.012.08.013h2.58c.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-.968V9.03h.968c.531 0 .967.436.967.967 0 .113-.019.222-.056.323h.056Zm3.225-6.45V1.29h-1.29v2.58h1.29Zm-10.309 0h1.609c.089-1.854.936-2.52 1.452-2.754A.2513.2513 0 0 0 5.55.89c0-.134-.11-.245-.244-.245h-.079C3.662.645 2.46 2.01 2.335 3.87Zm2.255 0h6.119V2.257c-1.154 0-2.459.001-3.508.003h-.077c.065.041.136.079.208.119.127.066.25.141.368.223a.43.43 0 0 1 .18.536.4527.4527 0 0 1-.258.228c-.223.079-.458.121-.696.123-.793.043-1.475.055-2.309.058-.012.102-.021.21-.027.323Zm14.663-.969c-.226-.759-.637-1.071-.917-1.198a.903.903 0 0 1-.434-.413h-4.613v.645c1.274 0 3.003 0 4.155.002h.055c.129-.006.259.004.385.032.259.037.451.267.44.528a.5407.5407 0 0 1-.265.373c.494.021.727.029 1.194.031ZM6.096 1.29a.8943.8943 0 0 1-.434.413c-.279.127-.691.439-.917 1.198.751-.003 1.383-.016 2.103-.054-.104-.06-.203-.129-.295-.207a.6246.6246 0 0 1-.235-.405c-.008-.263.164-.5.417-.572.132-.04.271-.056.409-.048h.055c1.051-.002 2.356-.003 3.51-.003V1.29H6.096Zm-3.315 9.03h.566a.9616.9616 0 0 1-.056-.323c0-.072.008-.143.024-.212l-.534.535Zm17.273-6.45h1.609C21.538 2.01 20.337.645 18.771.645h-.078a.245.245 0 0 0-.244.244c.002.099.063.188.154.226.516.235 1.362.901 1.451 2.755Zm-6.698 12.638c-.345.098-.701.162-1.062.19-.197.025-.395.047-.593.069-.056.004-.111.008-.167.014a3.995 3.995 0 0 0-.289-.618c.129-.015.257-.027.386-.037.193-.022.387-.043.58-.068.391-.027.776-.102 1.145-.222v.672Zm-.284-3.609h-2.363a.323.323 0 0 1-.322-.322v-2.58c0-.177.145-.322.322-.322h2.24c-.153.192-.275.409-.359.645h-1.558v1.934h1.627c.064.141.143.276.236.403l.177.242Zm-5.467 5.147.005-.01v.008l-.005.002ZM3.292 11.61v.644h-.645v-.644h.645Zm1.29 7.094v.645h-.645v-.645h.645Zm16.769-7.417v.645h-.645v-.645h.645Zm-1.29 7.417v.645h-.645v-.645h.645ZM8.774 11.932v.645h-.645v-.645h.645Zm3.548-1.29v1.29h-.645v-1.29h.645ZM4.064 6.927l.395.642-.549.338-.395-.642.549-.338Zm14.18 13.902c.875 0 1.586.712 1.586 1.585 0 .875-.711 1.586-1.586 1.586H6.606c-.875 0-1.585-.711-1.585-1.586 0-.873.71-1.585 1.585-1.585h.427c-.155-.246-.247-.534-.247-.845 0-.785.574-1.437 1.324-1.563v-.786c0-.385-.172-.744-.473-.986l-.034-.028a1.158 1.158 0 0 0-.723-.254c-.497 0-.902-.404-.902-.9s.405-.9.902-.9h.744c.836 0 1.653.288 2.304.812.866.697 1.363 1.733 1.363 2.842v.177h2.565v-5.272l-.557-.764c-.223-.306-.342-.666-.342-1.045v-.233c0-.979.799-1.775 1.781-1.775h1.418c.982 0 1.781.796 1.781 1.775v.233c0 .379-.118.739-.341 1.045l-.559.764v5.376c.599.226 1.027.805 1.027 1.482 0 .311-.092.599-.246.845h.426Zm-3.385-5.232a.263.263 0 0 1-.021-.372l.345-.389v-.794a1.7787 1.7787 0 0 1-.586-.196v4.552h1.7v-4.552c-.181.099-.379.165-.585.196v.794l.345.389a.264.264 0 0 1-.023.372.2624.2624 0 0 1-.175.068.2668.2668 0 0 1-.198-.089l-.214-.241-.214.241a.2668.2668 0 0 1-.198.089.2649.2649 0 0 1-.176-.068Zm-6.758.475c.476.384.75.953.75 1.563v.763h1.7v-.177a2.98 2.98 0 0 0-.076-.662l-.406-.062c-.733-.114-1.307-.704-1.398-1.438l-.072-.585a2.9598 2.9598 0 0 0-.975-.167H6.88c-.089 0-.162.072-.162.16 0 .088.073.159.162.159.431 0 .852.149 1.186.418l.035.028Zm8.342 7.188c.402-.819 1.152-1.415 2.057-1.616l.06-.012a.8101.8101 0 0 0-.316-.063H6.606c-.466 0-.845.38-.845.845 0 .467.379.846.845.846h.558l-.007-.006a.8244.8244 0 0 1-.265-.604c0-.409.307-.76.714-.816l.985-.136c.343-.047.696.071.942.315.309.309.41.773.255 1.182l-.025.065h6.68Zm-8.817-3.672a.836.836 0 0 0-.099.396c0 .466.379.845.846.845h4.31c.082-.551.464-1.022 1.001-1.211.419-.147.881-.106 1.266.114l.199.113c.374.214.636.574.73.984h.599c.466 0 .846-.379.846-.845 0-.467-.38-.846-.846-.846h-4.935l-.125.202c-.405.654-1.108 1.017-1.831 1.017-.348 0-.701-.085-1.028-.261l-.933-.508Zm6.072-8.271c0 .22.068.431.199.608l.709.971c.195.267.509.427.841.427.331 0 .646-.16.841-.427l.71-.971c.13-.177.199-.388.199-.608v-.233c0-.451-.293-.835-.698-.976v.301c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.359h-.258v.684c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.684h-.258v.359c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.301c-.406.141-.698.525-.698.976v.233Zm1.157.309c0 .166-.135.301-.303.301a.3015.3015 0 0 1-.302-.301.3026.3026 0 0 1 .605 0Zm1.672.012c0 .166-.136.302-.303.302a.3024.3024 0 0 1-.302-.302c0-.166.135-.301.302-.301.167 0 .303.135.303.301Z&amp;#x22;}&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/&quot; aria-description=&quot;module rich_click. rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;rich-click is a minimal Python module to combine the efforts of the excellent packages &amp;#x27;rich&amp;#x27; and &amp;#x27;click&amp;#x27;.&quot;&gt;&lt;span&gt;rich_click&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt; click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/init.html#module-rich&quot; aria-description=&quot;module rich. Rich documentation.&quot; data-scb-api-head=&quot;module rich&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;rich&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; box&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;help_config &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;click.&lt;/span&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;show_arguments&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;option_groups&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;my-command&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;            &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Arguments&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;                &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;panel_styles&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;box&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: box.DOUBLE_EDGE, &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;border_style&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;dim red&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;            &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.command&quot; aria-description=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]. Create a command. rich_click API reference.&quot; data-scb-api-head=&quot;def command(name: str | None | _AnyCallable = None, cls: type[CmdType] | None = None, **attrs: Any) -&gt; Command | Callable[[_AnyCallable], RichCommand | CmdType]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Create a command.&quot;&gt;&lt;span&gt;click.command&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;my-command&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.argument&quot; aria-description=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add a positional argument to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def argument(*param_decls: str, cls: type[click.Argument] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add a positional argument to the command.&quot;&gt;&lt;span&gt;click.argument&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;bar&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.option&quot; aria-description=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]. Add an option to the command. rich_click API reference.&quot; data-scb-api-head=&quot;def option(*param_decls: str, cls: type[click.Option] | None = None, **attrs: Any) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Add an option to the command.&quot;&gt;&lt;span&gt;click.option&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;--baz&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@&lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/decorators/#rich_click.decorators.rich_config&quot; aria-description=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]. Set the help configuration and the Rich console of one command or group. rich_click API reference.&quot; data-scb-api-head=&quot;def rich_config(help_config: dict[str, Any] | RichHelpConfiguration | None = None, *, console: Console | None = None) -&gt; Callable[[FC], FC]&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Set the help configuration and the Rich console of one command or group.&quot;&gt;&lt;span&gt;click.rich_config&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;help_config&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;foo&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;bar&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;baz&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; __name__ &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;__main__&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;cli&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;img alt=&quot;&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;994&quot; height=&quot;318&quot; src=&quot;https://ewels.github.io/rich-click/latest/_astro/arguments_box_and_panel_styles.BvnVrfSD_Z23PWeI.svg&quot;&gt;&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;improved-performance&quot;&gt;Improved performance&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;During command execution, &lt;strong&gt;rich-click&lt;/strong&gt; now loads faster and takes up less memory than before:&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;&quot; title=&quot;Execution times of different CLI frameworks&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2400&quot; height=&quot;1200&quot; src=&quot;https://ewels.github.io/rich-click/latest/_astro/execution_times.CMMRdAuz_Li4QK.webp&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=&quot;&quot; title=&quot;Memory consumption of different CLI frameworks&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2400&quot; height=&quot;1200&quot; src=&quot;https://ewels.github.io/rich-click/latest/_astro/memory_profiles.ChTE-U5O_Z2reBlm.webp&quot;&gt;&lt;/p&gt;
&lt;aside aria-label=&quot;Info&quot;&gt;&lt;p aria-hidden=&quot;true&quot;&gt;Info&lt;/p&gt;&lt;div&gt;&lt;p&gt;Python regularly compiles &lt;code dir=&quot;auto&quot;&gt;.py&lt;/code&gt; files into &lt;code dir=&quot;auto&quot;&gt;.pyc&lt;/code&gt; files to speed up code execution.
The &lt;strong&gt;with bytecode&lt;/strong&gt; metrics measure performance &lt;em&gt;with&lt;/em&gt; these &lt;code dir=&quot;auto&quot;&gt;.pyc&lt;/code&gt; files, and the &lt;strong&gt;without bytecode&lt;/strong&gt; metrics measure performance &lt;em&gt;without&lt;/em&gt; them.&lt;/p&gt;&lt;/div&gt;&lt;/aside&gt;
&lt;p&gt;We include the code we ran below. The metrics you see above were gathered by running the below script on an old Macbook.&lt;/p&gt;
&lt;details&gt;
&lt;summary&gt;Profiling script&lt;/summary&gt;
&lt;p&gt;This is the script we used to generate the data in the bar chart.&lt;/p&gt;
&lt;p&gt;This script requires &lt;code dir=&quot;auto&quot;&gt;uv&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;gdate&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#!/bin/bash&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-eo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pipefail&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;venv_benchmarks&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;PY_VERSION&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;3.12&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;speed_trials&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;40&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;mprof_trials&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;10&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;###############################################################################&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;uv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;venv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--python&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;PY_VERSION&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;cat&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;#x3C;&amp;#x3C;&lt;/span&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_click.py&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.command()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.option(&quot;--name&quot;, default=&quot;World&quot;, help=&quot;Name to greet.&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def hello(name):&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;Greet someone.&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;print(f&quot;Hello, {name}!&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if name == &quot;Daniel&quot;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;import time&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;time.sleep(0.2)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if __name__ == &quot;__main__&quot;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;hello()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;cat&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;#x3C;&amp;#x3C;&lt;/span&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import rich_click as click&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.command()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;@click.option(&quot;--name&quot;, default=&quot;World&quot;, help=&quot;Name to greet.&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def hello(name):&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;Greet someone.&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;print(f&quot;Hello, {name}!&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if name == &quot;Daniel&quot;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;import time&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;time.sleep(0.2)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if __name__ == &quot;__main__&quot;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;hello()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;cat&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;#x3C;&amp;#x3C;&lt;/span&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_argparse.py&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import argparse&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def main():&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;parser = argparse.ArgumentParser(description=&quot;Greet someone.&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;parser.add_argument(&quot;--name&quot;, default=&quot;World&quot;, help=&quot;Name to greet.&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;args = parser.parse_args()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;print(f&quot;Hello, {args.name}!&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if args.name == &quot;Daniel&quot;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;import time&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;time.sleep(0.2)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if __name__ == &apos;__main__&apos;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;cat&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;#x3C;&amp;#x3C;&lt;/span&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_typer.py&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import typer&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from typing_extensions import Annotated&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def main(name: Annotated[str, typer.Option(help=&quot;Name to greet.&quot;)] = &quot;World&quot;):&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;&quot;&quot;Greet someone.&quot;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;print(f&quot;Hello, {name}!&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if name == &quot;Daniel&quot;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;import time&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;time.sleep(0.3)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if __name__ == &apos;__main__&apos;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;EOF&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;chmod&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+x&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_argparse.py&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;chmod&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+x&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_click.py&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;chmod&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+x&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;chmod&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+x&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_typer.py&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;################################################################################&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;total_time&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;filename&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${1}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;clear_pyc_files&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${2}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;# Run once to compile pyc files&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&lt;span&gt;&quot;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}/bin/python&quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;filename&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--name&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Phil&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;for&lt;/span&gt;&lt;span&gt; (( &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;#x3C;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;speed_trials&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;++&lt;/span&gt;&lt;span&gt; ))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;clear_pyc_files&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;find&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}/lib/python${&lt;/span&gt;&lt;span&gt;PY_VERSION&lt;/span&gt;&lt;span&gt;}/site-packages/&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-name&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt;*.pyc&lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;start_time&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;gdate&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+%s.%N&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&lt;span&gt;&quot;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}/bin/python&quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;filename&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--name&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Phil&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;end_time&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;gdate&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;+%s.%N&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;elapsed&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$end_time&lt;/span&gt;&lt;span&gt; - &lt;/span&gt;&lt;span&gt;$start_time&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bc&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;total_time&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$total_time&lt;/span&gt;&lt;span&gt; + &lt;/span&gt;&lt;span&gt;$elapsed&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bc&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;done&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;average_time&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$total_time&lt;/span&gt;&lt;span&gt; / &lt;/span&gt;&lt;span&gt;$speed_trials&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bc&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-l&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Average time for ${&lt;/span&gt;&lt;span&gt;filename&lt;/span&gt;&lt;span&gt;} with clear_pyc_files=${&lt;/span&gt;&lt;span&gt;clear_pyc_files&lt;/span&gt;&lt;span&gt;}: &lt;/span&gt;&lt;span&gt;$average_time&lt;/span&gt;&lt;span&gt; seconds&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;total_mib&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;filename&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${1}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;clear_pyc_files&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${2}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;# Run once to compile pyc files&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&lt;span&gt;&quot;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}/bin/python&quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;filename&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--name&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Phil&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;for&lt;/span&gt;&lt;span&gt; (( &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;#x3C;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mprof_trials&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;++&lt;/span&gt;&lt;span&gt; ))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; [ &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;clear_pyc_files&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; ]; &lt;/span&gt;&lt;span&gt;then&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;find&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}/lib/python${&lt;/span&gt;&lt;span&gt;PY_VERSION&lt;/span&gt;&lt;span&gt;}/site-packages/&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-name&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt;*.pyc&lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&lt;span&gt;&quot;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}/bin/mprof&quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;run&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}/bin/python&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;filename&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--name&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Daniel&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;output&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;&lt;span&gt;&quot;${&lt;/span&gt;&lt;span&gt;VIRTUAL_ENV&lt;/span&gt;&lt;span&gt;}/bin/mprof&quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;peak&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;mprof_file&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$output&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;grep&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt;mprofile&lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;awk&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt;{print $1}&lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;memory_usage&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$output&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;grep&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt;mprofile&lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;awk&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt;{print $2}&lt;/span&gt;&lt;span&gt;&apos;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bc&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;total_time&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$total_mib&lt;/span&gt;&lt;span&gt; + &lt;/span&gt;&lt;span&gt;$memory_usage&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bc&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;rm&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;mprof_file&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;done&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;average_memory_usage&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;$memory_usage&lt;/span&gt;&lt;span&gt; / &lt;/span&gt;&lt;span&gt;$mprof_trials&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bc&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-l&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;echo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Average MiB consumed for ${&lt;/span&gt;&lt;span&gt;filename&lt;/span&gt;&lt;span&gt;} with clear_pyc_files=${&lt;/span&gt;&lt;span&gt;clear_pyc_files&lt;/span&gt;&lt;span&gt;}: &lt;/span&gt;&lt;span&gt;$memory_usage&lt;/span&gt;&lt;span&gt; MiB&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;################################################################################&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Times&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;uv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pip&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--no-binary&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;:all:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;rich-click==1.8.0&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_argparse.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_argparse.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;uv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pip&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--no-binary&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;:all:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;rich-click==1.7&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_times&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;################################################################################&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Memory profiling&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;uv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pip&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;memory-profiler&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;uv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pip&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--no-binary&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;:all:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;rich-click==1.8.0&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_argparse.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_argparse.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;uv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pip&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--no-binary&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;:all:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;rich-click==1.7&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;get_mprof&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hello_rich_click.py&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;/details&gt;
&lt;p&gt;We include Typer in our profiling to show a reasonable baseline for a Click wrapper’s overhead.
Typer is an ambitious and great project that’s doing quite a bit under the hood, and it’s reasonable to expect it to take a little more time and memory.&lt;/p&gt;
&lt;p&gt;Why is &lt;strong&gt;rich-click&lt;/strong&gt; 1.8 more performant? 1.7 left a few free optimizations on the table:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Only import &lt;code dir=&quot;auto&quot;&gt;rich&lt;/code&gt; when rendering help text.&lt;/li&gt;
&lt;li&gt;Use &lt;code dir=&quot;auto&quot;&gt;click.__version__&lt;/code&gt; instead of &lt;code dir=&quot;auto&quot;&gt;importlib.metadata.version(&quot;click&quot;)&lt;/code&gt; for Click 7 compat.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For the first change, this meant replacing code like this…:&lt;/p&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot; data-scb-api-icons=&quot;{&amp;#x22;python&amp;#x22;:&amp;#x22;M11.858 0c-.978.005-1.913.088-2.736.234C6.7.662 6.26 1.558 6.26 3.21v2.182h5.725v.727H4.111c-1.664 0-3.121 1-3.577 2.903-.526 2.181-.549 3.542 0 5.82.407 1.694 1.379 2.902 3.043 2.902h1.969v-2.616c0-1.89 1.635-3.557 3.576-3.557h5.72c1.591 0 2.862-1.31 2.862-2.91v-5.45c0-1.553-1.309-2.718-2.863-2.977A18 18 0 0 0 11.858 0M8.762 1.755c.591 0 1.074.491 1.074 1.095 0 .601-.483 1.087-1.074 1.087A1.08 1.08 0 0 1 7.688 2.85c0-.604.48-1.095 1.074-1.095m9.656 4.364v2.543c0 1.971-1.671 3.63-3.577 3.63H9.122c-1.566 0-2.862 1.34-2.862 2.91v5.452c0 1.551 1.349 2.464 2.862 2.91 1.813.532 3.55.628 5.72 0 1.44-.418 2.862-1.258 2.862-2.91V18.47h-5.719v-.727h8.582c1.664 0 2.284-1.16 2.862-2.903.598-1.793.573-3.518 0-5.819-.41-1.656-1.196-2.903-2.862-2.903zm-3.216 13.807a1.08 1.08 0 0 1 1.074 1.088c0 .604-.48 1.094-1.074 1.094-.592 0-1.075-.49-1.075-1.094 0-.601.483-1.088 1.075-1.088&amp;#x22;,&amp;#x22;rich&amp;#x22;:&amp;#x22;M9.419 10.32v-.645c0-.531.437-.968.968-.968h3.225c.204 0 .395.065.552.175a2.295 2.295 0 0 0-.904.47h-2.873c-.177 0-.323.146-.323.323v3.224c0 .177.146.323.323.323h2.921l.048.067v.578h-2.969c-.531 0-.968-.437-.968-.968v-1.934h-5.13l.08.967h3.115v.645H4.423l.058.698c.651.192 1.323.309 2.001.347.901.038 1.789.229 2.625.564.138.04.244.146.288.276a4.183 4.183 0 0 0-1.771-.395H6.88c-.25 0-.485.065-.688.18a9.4449 9.4449 0 0 1-1.654-.286l.147 1.772c.267-.044.533-.095.798-.15.018.224.09.434.203.616-.314.067-.63.127-.947.179l.09 1.09c.03.332.31.589.643.591h2.101c-.335.14-.626.364-.846.645H5.472c-.666-.003-1.226-.519-1.285-1.183l-.548-6.556H2.358l.758 7.578c.081.821.78 1.453 1.605 1.451h1.565c.001.121.012.239.033.355-.293.04-.566.141-.806.29h-.792c-1.155.004-2.134-.882-2.246-2.032l-.794-7.933c-.001-.01-.001-.021-.001-.032 0-.088.036-.169.094-.228l2.58-2.58a.324.324 0 0 1 .228-.094h1.023a.9628.9628 0 0 1-.056-.323c0-.435.294-.819.713-.933a.9928.9928 0 0 1-.068-.357c0-.53.437-.967.968-.967h1.29c.531 0 .967.437.967.967 0 .099-.015.198-.045.293a.976.976 0 0 1 .436-.258.9719.9719 0 0 1-.068-.357c0-.531.437-.968.967-.968h1.29c.531 0 .968.437.968.968 0 .11-.019.219-.055.322h1.667c.331 0 .639.17.816.449a.9527.9527 0 0 1 .474-.126h2.58c.531 0 .968.436.968.967 0 .11-.019.219-.056.323h.461l-.282-.174 1.876-3.051h-2.645V3.87h.637a5.077 5.077 0 0 0-.027-.323c-.64-.002-.853-.011-1.57-.04l-.09-.004a2.6858 2.6858 0 0 1-.673-.089.4482.4482 0 0 1-.267-.189.4067.4067 0 0 1-.041-.282.455.455 0 0 1 .238-.274c.059-.032.12-.062.181-.089h-3.87v1.29h4.837v.645H2.579l1.087 1.766-.549.338-1.389-2.258a.3145.3145 0 0 1-.048-.169C1.68 1.802 3.205 0 5.227 0h.078c.403 0 .747.275.855.645h11.679c.107-.37.451-.645.854-.645h.078c2.023 0 3.548 1.802 3.548 4.192a.318.318 0 0 1-.067.196L20.191 7.74h.193c.53 0 .967.437.967.967 0 .224-.078.441-.22.614l1.083 1.082c.065.06.106.145.106.239 0 .011 0 .022-.001.032l-.794 7.933c-.11 1.131-1.059 2.006-2.188 2.032a2.053 2.053 0 0 0-.805-.29c.021-.116.032-.234.032-.355h.714c.824.002 1.524-.63 1.604-1.451l.76-7.578h-1.283l-.546 6.556c-.059.664-.62 1.18-1.287 1.183h-.403c-.094-.12-.201-.23-.319-.328v-.317h.722c.333-.002.613-.259.643-.591l.004-.054c-.578 0-1.099-.002-1.636-.018v-.645c.553.017 1.091.018 1.69.018l.08-.96c-.666.022-1.243.098-1.77.237v-.665c.549-.13 1.145-.201 1.824-.219l.081-.971c-.637.008-1.272.043-1.905.105v-.647a23.275 23.275 0 0 1 1.958-.103l.081-.969h-1.521c.134-.2.234-.417.298-.645h1.276l.081-.967h-1.276a2.2538 2.2538 0 0 0-.129-.645h2.079c.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-1.935a.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-2.58a.321.321 0 0 0-.277.161c-.057.1-.164.161-.279.161h-.089a.323.323 0 0 1-.322-.322c0-.177-.146-.323-.323-.323h-2.58a.323.323 0 0 1-.322-.322c0-.177.145-.323.322-.323.177 0 .323-.145.323-.322 0-.177-.146-.323-.323-.323h-1.29c-.177 0-.322.146-.322.323 0 .177.145.322.322.322.177 0 .323.146.323.323 0 .177-.146.322-.323.322h-.645a.323.323 0 0 0-.302.218.3227.3227 0 0 1-.305.215.327.327 0 0 1-.179-.054.3172.3172 0 0 0-.181-.056h-.645a.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-1.29c-.177 0-.323.145-.323.322 0 .177.146.323.323.323.177 0 .322.145.322.322 0 .177-.145.323-.322.323h-.645c-.177 0-.323.145-.323.322 0 .177.146.323.323.323.177 0 .322.145.322.322 0 .177-.145.323-.322.323H4.904c-.176 0-.322.145-.322.322 0 .177.146.323.322.323.177 0 .323.145.323.322 0 .177-.146.323-.323.323H4.26c-.177 0-.323.145-.323.322 0 .177.146.323.323.323h1.289a.3117.3117 0 0 0 .081-.013.3177.3177 0 0 1 .162 0c.026.007.053.012.08.013h2.58c.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-.968V9.03h.968c.531 0 .967.436.967.967 0 .113-.019.222-.056.323h.056Zm3.225-6.45V1.29h-1.29v2.58h1.29Zm-10.309 0h1.609c.089-1.854.936-2.52 1.452-2.754A.2513.2513 0 0 0 5.55.89c0-.134-.11-.245-.244-.245h-.079C3.662.645 2.46 2.01 2.335 3.87Zm2.255 0h6.119V2.257c-1.154 0-2.459.001-3.508.003h-.077c.065.041.136.079.208.119.127.066.25.141.368.223a.43.43 0 0 1 .18.536.4527.4527 0 0 1-.258.228c-.223.079-.458.121-.696.123-.793.043-1.475.055-2.309.058-.012.102-.021.21-.027.323Zm14.663-.969c-.226-.759-.637-1.071-.917-1.198a.903.903 0 0 1-.434-.413h-4.613v.645c1.274 0 3.003 0 4.155.002h.055c.129-.006.259.004.385.032.259.037.451.267.44.528a.5407.5407 0 0 1-.265.373c.494.021.727.029 1.194.031ZM6.096 1.29a.8943.8943 0 0 1-.434.413c-.279.127-.691.439-.917 1.198.751-.003 1.383-.016 2.103-.054-.104-.06-.203-.129-.295-.207a.6246.6246 0 0 1-.235-.405c-.008-.263.164-.5.417-.572.132-.04.271-.056.409-.048h.055c1.051-.002 2.356-.003 3.51-.003V1.29H6.096Zm-3.315 9.03h.566a.9616.9616 0 0 1-.056-.323c0-.072.008-.143.024-.212l-.534.535Zm17.273-6.45h1.609C21.538 2.01 20.337.645 18.771.645h-.078a.245.245 0 0 0-.244.244c.002.099.063.188.154.226.516.235 1.362.901 1.451 2.755Zm-6.698 12.638c-.345.098-.701.162-1.062.19-.197.025-.395.047-.593.069-.056.004-.111.008-.167.014a3.995 3.995 0 0 0-.289-.618c.129-.015.257-.027.386-.037.193-.022.387-.043.58-.068.391-.027.776-.102 1.145-.222v.672Zm-.284-3.609h-2.363a.323.323 0 0 1-.322-.322v-2.58c0-.177.145-.322.322-.322h2.24c-.153.192-.275.409-.359.645h-1.558v1.934h1.627c.064.141.143.276.236.403l.177.242Zm-5.467 5.147.005-.01v.008l-.005.002ZM3.292 11.61v.644h-.645v-.644h.645Zm1.29 7.094v.645h-.645v-.645h.645Zm16.769-7.417v.645h-.645v-.645h.645Zm-1.29 7.417v.645h-.645v-.645h.645ZM8.774 11.932v.645h-.645v-.645h.645Zm3.548-1.29v1.29h-.645v-1.29h.645ZM4.064 6.927l.395.642-.549.338-.395-.642.549-.338Zm14.18 13.902c.875 0 1.586.712 1.586 1.585 0 .875-.711 1.586-1.586 1.586H6.606c-.875 0-1.585-.711-1.585-1.586 0-.873.71-1.585 1.585-1.585h.427c-.155-.246-.247-.534-.247-.845 0-.785.574-1.437 1.324-1.563v-.786c0-.385-.172-.744-.473-.986l-.034-.028a1.158 1.158 0 0 0-.723-.254c-.497 0-.902-.404-.902-.9s.405-.9.902-.9h.744c.836 0 1.653.288 2.304.812.866.697 1.363 1.733 1.363 2.842v.177h2.565v-5.272l-.557-.764c-.223-.306-.342-.666-.342-1.045v-.233c0-.979.799-1.775 1.781-1.775h1.418c.982 0 1.781.796 1.781 1.775v.233c0 .379-.118.739-.341 1.045l-.559.764v5.376c.599.226 1.027.805 1.027 1.482 0 .311-.092.599-.246.845h.426Zm-3.385-5.232a.263.263 0 0 1-.021-.372l.345-.389v-.794a1.7787 1.7787 0 0 1-.586-.196v4.552h1.7v-4.552c-.181.099-.379.165-.585.196v.794l.345.389a.264.264 0 0 1-.023.372.2624.2624 0 0 1-.175.068.2668.2668 0 0 1-.198-.089l-.214-.241-.214.241a.2668.2668 0 0 1-.198.089.2649.2649 0 0 1-.176-.068Zm-6.758.475c.476.384.75.953.75 1.563v.763h1.7v-.177a2.98 2.98 0 0 0-.076-.662l-.406-.062c-.733-.114-1.307-.704-1.398-1.438l-.072-.585a2.9598 2.9598 0 0 0-.975-.167H6.88c-.089 0-.162.072-.162.16 0 .088.073.159.162.159.431 0 .852.149 1.186.418l.035.028Zm8.342 7.188c.402-.819 1.152-1.415 2.057-1.616l.06-.012a.8101.8101 0 0 0-.316-.063H6.606c-.466 0-.845.38-.845.845 0 .467.379.846.845.846h.558l-.007-.006a.8244.8244 0 0 1-.265-.604c0-.409.307-.76.714-.816l.985-.136c.343-.047.696.071.942.315.309.309.41.773.255 1.182l-.025.065h6.68Zm-8.817-3.672a.836.836 0 0 0-.099.396c0 .466.379.845.846.845h4.31c.082-.551.464-1.022 1.001-1.211.419-.147.881-.106 1.266.114l.199.113c.374.214.636.574.73.984h.599c.466 0 .846-.379.846-.845 0-.467-.38-.846-.846-.846h-4.935l-.125.202c-.405.654-1.108 1.017-1.831 1.017-.348 0-.701-.085-1.028-.261l-.933-.508Zm6.072-8.271c0 .22.068.431.199.608l.709.971c.195.267.509.427.841.427.331 0 .646-.16.841-.427l.71-.971c.13-.177.199-.388.199-.608v-.233c0-.451-.293-.835-.698-.976v.301c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.359h-.258v.684c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.684h-.258v.359c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.301c-.406.141-.698.525-.698.976v.233Zm1.157.309c0 .166-.135.301-.303.301a.3015.3015 0 0 1-.302-.301.3026.3026 0 0 1 .605 0Zm1.672.012c0 .166-.136.302-.303.302a.3024.3024 0 0 1-.302-.302c0-.166.135-.301.302-.301.167 0 .303.135.303.301Z&amp;#x22;}&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#module-typing&quot; aria-description=&quot;module typing. Python 3.15 documentation.&quot; data-scb-api-head=&quot;module typing&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;typing&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.IO&quot; aria-description=&quot;class typing.IO. Generic class IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such…. Python 3.15 documentation.&quot; data-scb-api-head=&quot;class typing.IO&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Generic class IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such…&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;IO&lt;/span&gt;&lt;/a&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.Optional&quot; aria-description=&quot;data typing.Optional. Optional[X] is equivalent to X | None. Python 3.15 documentation.&quot; data-scb-api-head=&quot;data typing.Optional&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Optional[X] is equivalent to X | None.&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;Optional&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#module-rich.console&quot; aria-description=&quot;module rich.console. Rich documentation.&quot; data-scb-api-head=&quot;module rich.console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;rich.console&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#rich.console.Console&quot; aria-description=&quot;class rich.console.Console. A high level console interface. Rich documentation.&quot; data-scb-api-head=&quot;class rich.console.Console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-summary=&quot;A high level console interface.&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;Console&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/&quot; aria-description=&quot;module rich_click.rich_help_configuration. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click.rich_help_configuration&quot; data-scb-api-source=&quot;rich_click API reference&quot;&gt;&lt;span&gt;rich_click.rich_help_configuration&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;create_console&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;file&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.Optional&quot; aria-description=&quot;data typing.Optional. Optional[X] is equivalent to X | None. Python 3.15 documentation.&quot; data-scb-api-head=&quot;data typing.Optional&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Optional[X] is equivalent to X | None.&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;Optional&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[&lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.IO&quot; aria-description=&quot;class typing.IO. Generic class IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such…. Python 3.15 documentation.&quot; data-scb-api-head=&quot;class typing.IO&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Generic class IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such…&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;IO&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;str&lt;/span&gt;&lt;span&gt;]] &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;None&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; -&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#rich.console.Console&quot; aria-description=&quot;class rich.console.Console. A high level console interface. Rich documentation.&quot; data-scb-api-head=&quot;class rich.console.Console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-summary=&quot;A high level console interface.&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;Console&lt;/span&gt;&lt;/a&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;console &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#rich.console.Console&quot; aria-description=&quot;class rich.console.Console. A high level console interface. Rich documentation.&quot; data-scb-api-head=&quot;class rich.console.Console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-summary=&quot;A high level console interface.&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;Console&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;        &lt;span aria-hidden=&quot;true&quot;&gt;# ...&lt;/span&gt;&lt;span data-pagefind-ignore=&quot;&quot;&gt;&lt;span&gt;Code not shown&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; console&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;…with code like this…:&lt;/p&gt;
&lt;div&gt;&lt;figure data-scb-api-links=&quot;&quot; data-scb-api-icons=&quot;{&amp;#x22;python&amp;#x22;:&amp;#x22;M11.858 0c-.978.005-1.913.088-2.736.234C6.7.662 6.26 1.558 6.26 3.21v2.182h5.725v.727H4.111c-1.664 0-3.121 1-3.577 2.903-.526 2.181-.549 3.542 0 5.82.407 1.694 1.379 2.902 3.043 2.902h1.969v-2.616c0-1.89 1.635-3.557 3.576-3.557h5.72c1.591 0 2.862-1.31 2.862-2.91v-5.45c0-1.553-1.309-2.718-2.863-2.977A18 18 0 0 0 11.858 0M8.762 1.755c.591 0 1.074.491 1.074 1.095 0 .601-.483 1.087-1.074 1.087A1.08 1.08 0 0 1 7.688 2.85c0-.604.48-1.095 1.074-1.095m9.656 4.364v2.543c0 1.971-1.671 3.63-3.577 3.63H9.122c-1.566 0-2.862 1.34-2.862 2.91v5.452c0 1.551 1.349 2.464 2.862 2.91 1.813.532 3.55.628 5.72 0 1.44-.418 2.862-1.258 2.862-2.91V18.47h-5.719v-.727h8.582c1.664 0 2.284-1.16 2.862-2.903.598-1.793.573-3.518 0-5.819-.41-1.656-1.196-2.903-2.862-2.903zm-3.216 13.807a1.08 1.08 0 0 1 1.074 1.088c0 .604-.48 1.094-1.074 1.094-.592 0-1.075-.49-1.075-1.094 0-.601.483-1.088 1.075-1.088&amp;#x22;,&amp;#x22;rich&amp;#x22;:&amp;#x22;M9.419 10.32v-.645c0-.531.437-.968.968-.968h3.225c.204 0 .395.065.552.175a2.295 2.295 0 0 0-.904.47h-2.873c-.177 0-.323.146-.323.323v3.224c0 .177.146.323.323.323h2.921l.048.067v.578h-2.969c-.531 0-.968-.437-.968-.968v-1.934h-5.13l.08.967h3.115v.645H4.423l.058.698c.651.192 1.323.309 2.001.347.901.038 1.789.229 2.625.564.138.04.244.146.288.276a4.183 4.183 0 0 0-1.771-.395H6.88c-.25 0-.485.065-.688.18a9.4449 9.4449 0 0 1-1.654-.286l.147 1.772c.267-.044.533-.095.798-.15.018.224.09.434.203.616-.314.067-.63.127-.947.179l.09 1.09c.03.332.31.589.643.591h2.101c-.335.14-.626.364-.846.645H5.472c-.666-.003-1.226-.519-1.285-1.183l-.548-6.556H2.358l.758 7.578c.081.821.78 1.453 1.605 1.451h1.565c.001.121.012.239.033.355-.293.04-.566.141-.806.29h-.792c-1.155.004-2.134-.882-2.246-2.032l-.794-7.933c-.001-.01-.001-.021-.001-.032 0-.088.036-.169.094-.228l2.58-2.58a.324.324 0 0 1 .228-.094h1.023a.9628.9628 0 0 1-.056-.323c0-.435.294-.819.713-.933a.9928.9928 0 0 1-.068-.357c0-.53.437-.967.968-.967h1.29c.531 0 .967.437.967.967 0 .099-.015.198-.045.293a.976.976 0 0 1 .436-.258.9719.9719 0 0 1-.068-.357c0-.531.437-.968.967-.968h1.29c.531 0 .968.437.968.968 0 .11-.019.219-.055.322h1.667c.331 0 .639.17.816.449a.9527.9527 0 0 1 .474-.126h2.58c.531 0 .968.436.968.967 0 .11-.019.219-.056.323h.461l-.282-.174 1.876-3.051h-2.645V3.87h.637a5.077 5.077 0 0 0-.027-.323c-.64-.002-.853-.011-1.57-.04l-.09-.004a2.6858 2.6858 0 0 1-.673-.089.4482.4482 0 0 1-.267-.189.4067.4067 0 0 1-.041-.282.455.455 0 0 1 .238-.274c.059-.032.12-.062.181-.089h-3.87v1.29h4.837v.645H2.579l1.087 1.766-.549.338-1.389-2.258a.3145.3145 0 0 1-.048-.169C1.68 1.802 3.205 0 5.227 0h.078c.403 0 .747.275.855.645h11.679c.107-.37.451-.645.854-.645h.078c2.023 0 3.548 1.802 3.548 4.192a.318.318 0 0 1-.067.196L20.191 7.74h.193c.53 0 .967.437.967.967 0 .224-.078.441-.22.614l1.083 1.082c.065.06.106.145.106.239 0 .011 0 .022-.001.032l-.794 7.933c-.11 1.131-1.059 2.006-2.188 2.032a2.053 2.053 0 0 0-.805-.29c.021-.116.032-.234.032-.355h.714c.824.002 1.524-.63 1.604-1.451l.76-7.578h-1.283l-.546 6.556c-.059.664-.62 1.18-1.287 1.183h-.403c-.094-.12-.201-.23-.319-.328v-.317h.722c.333-.002.613-.259.643-.591l.004-.054c-.578 0-1.099-.002-1.636-.018v-.645c.553.017 1.091.018 1.69.018l.08-.96c-.666.022-1.243.098-1.77.237v-.665c.549-.13 1.145-.201 1.824-.219l.081-.971c-.637.008-1.272.043-1.905.105v-.647a23.275 23.275 0 0 1 1.958-.103l.081-.969h-1.521c.134-.2.234-.417.298-.645h1.276l.081-.967h-1.276a2.2538 2.2538 0 0 0-.129-.645h2.079c.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-1.935a.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-2.58a.321.321 0 0 0-.277.161c-.057.1-.164.161-.279.161h-.089a.323.323 0 0 1-.322-.322c0-.177-.146-.323-.323-.323h-2.58a.323.323 0 0 1-.322-.322c0-.177.145-.323.322-.323.177 0 .323-.145.323-.322 0-.177-.146-.323-.323-.323h-1.29c-.177 0-.322.146-.322.323 0 .177.145.322.322.322.177 0 .323.146.323.323 0 .177-.146.322-.323.322h-.645a.323.323 0 0 0-.302.218.3227.3227 0 0 1-.305.215.327.327 0 0 1-.179-.054.3172.3172 0 0 0-.181-.056h-.645a.3248.3248 0 0 1-.323-.323c0-.177.146-.322.323-.322.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-1.29c-.177 0-.323.145-.323.322 0 .177.146.323.323.323.177 0 .322.145.322.322 0 .177-.145.323-.322.323h-.645c-.177 0-.323.145-.323.322 0 .177.146.323.323.323.177 0 .322.145.322.322 0 .177-.145.323-.322.323H4.904c-.176 0-.322.145-.322.322 0 .177.146.323.322.323.177 0 .323.145.323.322 0 .177-.146.323-.323.323H4.26c-.177 0-.323.145-.323.322 0 .177.146.323.323.323h1.289a.3117.3117 0 0 0 .081-.013.3177.3177 0 0 1 .162 0c.026.007.053.012.08.013h2.58c.177 0 .322-.146.322-.323a.323.323 0 0 0-.322-.322h-.968V9.03h.968c.531 0 .967.436.967.967 0 .113-.019.222-.056.323h.056Zm3.225-6.45V1.29h-1.29v2.58h1.29Zm-10.309 0h1.609c.089-1.854.936-2.52 1.452-2.754A.2513.2513 0 0 0 5.55.89c0-.134-.11-.245-.244-.245h-.079C3.662.645 2.46 2.01 2.335 3.87Zm2.255 0h6.119V2.257c-1.154 0-2.459.001-3.508.003h-.077c.065.041.136.079.208.119.127.066.25.141.368.223a.43.43 0 0 1 .18.536.4527.4527 0 0 1-.258.228c-.223.079-.458.121-.696.123-.793.043-1.475.055-2.309.058-.012.102-.021.21-.027.323Zm14.663-.969c-.226-.759-.637-1.071-.917-1.198a.903.903 0 0 1-.434-.413h-4.613v.645c1.274 0 3.003 0 4.155.002h.055c.129-.006.259.004.385.032.259.037.451.267.44.528a.5407.5407 0 0 1-.265.373c.494.021.727.029 1.194.031ZM6.096 1.29a.8943.8943 0 0 1-.434.413c-.279.127-.691.439-.917 1.198.751-.003 1.383-.016 2.103-.054-.104-.06-.203-.129-.295-.207a.6246.6246 0 0 1-.235-.405c-.008-.263.164-.5.417-.572.132-.04.271-.056.409-.048h.055c1.051-.002 2.356-.003 3.51-.003V1.29H6.096Zm-3.315 9.03h.566a.9616.9616 0 0 1-.056-.323c0-.072.008-.143.024-.212l-.534.535Zm17.273-6.45h1.609C21.538 2.01 20.337.645 18.771.645h-.078a.245.245 0 0 0-.244.244c.002.099.063.188.154.226.516.235 1.362.901 1.451 2.755Zm-6.698 12.638c-.345.098-.701.162-1.062.19-.197.025-.395.047-.593.069-.056.004-.111.008-.167.014a3.995 3.995 0 0 0-.289-.618c.129-.015.257-.027.386-.037.193-.022.387-.043.58-.068.391-.027.776-.102 1.145-.222v.672Zm-.284-3.609h-2.363a.323.323 0 0 1-.322-.322v-2.58c0-.177.145-.322.322-.322h2.24c-.153.192-.275.409-.359.645h-1.558v1.934h1.627c.064.141.143.276.236.403l.177.242Zm-5.467 5.147.005-.01v.008l-.005.002ZM3.292 11.61v.644h-.645v-.644h.645Zm1.29 7.094v.645h-.645v-.645h.645Zm16.769-7.417v.645h-.645v-.645h.645Zm-1.29 7.417v.645h-.645v-.645h.645ZM8.774 11.932v.645h-.645v-.645h.645Zm3.548-1.29v1.29h-.645v-1.29h.645ZM4.064 6.927l.395.642-.549.338-.395-.642.549-.338Zm14.18 13.902c.875 0 1.586.712 1.586 1.585 0 .875-.711 1.586-1.586 1.586H6.606c-.875 0-1.585-.711-1.585-1.586 0-.873.71-1.585 1.585-1.585h.427c-.155-.246-.247-.534-.247-.845 0-.785.574-1.437 1.324-1.563v-.786c0-.385-.172-.744-.473-.986l-.034-.028a1.158 1.158 0 0 0-.723-.254c-.497 0-.902-.404-.902-.9s.405-.9.902-.9h.744c.836 0 1.653.288 2.304.812.866.697 1.363 1.733 1.363 2.842v.177h2.565v-5.272l-.557-.764c-.223-.306-.342-.666-.342-1.045v-.233c0-.979.799-1.775 1.781-1.775h1.418c.982 0 1.781.796 1.781 1.775v.233c0 .379-.118.739-.341 1.045l-.559.764v5.376c.599.226 1.027.805 1.027 1.482 0 .311-.092.599-.246.845h.426Zm-3.385-5.232a.263.263 0 0 1-.021-.372l.345-.389v-.794a1.7787 1.7787 0 0 1-.586-.196v4.552h1.7v-4.552c-.181.099-.379.165-.585.196v.794l.345.389a.264.264 0 0 1-.023.372.2624.2624 0 0 1-.175.068.2668.2668 0 0 1-.198-.089l-.214-.241-.214.241a.2668.2668 0 0 1-.198.089.2649.2649 0 0 1-.176-.068Zm-6.758.475c.476.384.75.953.75 1.563v.763h1.7v-.177a2.98 2.98 0 0 0-.076-.662l-.406-.062c-.733-.114-1.307-.704-1.398-1.438l-.072-.585a2.9598 2.9598 0 0 0-.975-.167H6.88c-.089 0-.162.072-.162.16 0 .088.073.159.162.159.431 0 .852.149 1.186.418l.035.028Zm8.342 7.188c.402-.819 1.152-1.415 2.057-1.616l.06-.012a.8101.8101 0 0 0-.316-.063H6.606c-.466 0-.845.38-.845.845 0 .467.379.846.845.846h.558l-.007-.006a.8244.8244 0 0 1-.265-.604c0-.409.307-.76.714-.816l.985-.136c.343-.047.696.071.942.315.309.309.41.773.255 1.182l-.025.065h6.68Zm-8.817-3.672a.836.836 0 0 0-.099.396c0 .466.379.845.846.845h4.31c.082-.551.464-1.022 1.001-1.211.419-.147.881-.106 1.266.114l.199.113c.374.214.636.574.73.984h.599c.466 0 .846-.379.846-.845 0-.467-.38-.846-.846-.846h-4.935l-.125.202c-.405.654-1.108 1.017-1.831 1.017-.348 0-.701-.085-1.028-.261l-.933-.508Zm6.072-8.271c0 .22.068.431.199.608l.709.971c.195.267.509.427.841.427.331 0 .646-.16.841-.427l.71-.971c.13-.177.199-.388.199-.608v-.233c0-.451-.293-.835-.698-.976v.301c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.359h-.258v.684c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.684h-.258v.359c0 .146-.119.265-.265.265a.2646.2646 0 0 1-.264-.265v-.301c-.406.141-.698.525-.698.976v.233Zm1.157.309c0 .166-.135.301-.303.301a.3015.3015 0 0 1-.302-.301.3026.3026 0 0 1 .605 0Zm1.672.012c0 .166-.136.302-.303.302a.3024.3024 0 0 1-.302-.302c0-.166.135-.301.302-.301.167 0 .303.135.303.301Z&amp;#x22;}&quot;&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#module-typing&quot; aria-description=&quot;module typing. Python 3.15 documentation.&quot; data-scb-api-head=&quot;module typing&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;typing&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.TYPE_CHECKING&quot; aria-description=&quot;data typing.TYPE_CHECKING. A special constant that is assumed to be True by static type checkers. Python 3.15 documentation.&quot; data-scb-api-head=&quot;data typing.TYPE_CHECKING&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;A special constant that is assumed to be True by static type checkers.&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;TYPE_CHECKING&lt;/span&gt;&lt;/a&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.IO&quot; aria-description=&quot;class typing.IO. Generic class IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such…. Python 3.15 documentation.&quot; data-scb-api-head=&quot;class typing.IO&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Generic class IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such…&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;IO&lt;/span&gt;&lt;/a&gt;&lt;span&gt;, &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.Optional&quot; aria-description=&quot;data typing.Optional. Optional[X] is equivalent to X | None. Python 3.15 documentation.&quot; data-scb-api-head=&quot;data typing.Optional&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Optional[X] is equivalent to X | None.&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;Optional&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/&quot; aria-description=&quot;module rich_click.rich_help_configuration. rich_click API reference.&quot; data-scb-api-head=&quot;module rich_click.rich_help_configuration&quot; data-scb-api-source=&quot;rich_click API reference&quot;&gt;&lt;span&gt;rich_click.rich_help_configuration&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.TYPE_CHECKING&quot; aria-description=&quot;data typing.TYPE_CHECKING. A special constant that is assumed to be True by static type checkers. Python 3.15 documentation.&quot; data-scb-api-head=&quot;data typing.TYPE_CHECKING&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;A special constant that is assumed to be True by static type checkers.&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;TYPE_CHECKING&lt;/span&gt;&lt;/a&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#module-rich.console&quot; aria-description=&quot;module rich.console. Rich documentation.&quot; data-scb-api-head=&quot;module rich.console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;rich.console&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#rich.console.Console&quot; aria-description=&quot;class rich.console.Console. A high level console interface. Rich documentation.&quot; data-scb-api-head=&quot;class rich.console.Console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-summary=&quot;A high level console interface.&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;Console&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;def&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;create_console&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://ewels.github.io/rich-click/latest/api/rich_click/rich_help_configuration/#rich_click.rich_help_configuration.RichHelpConfiguration&quot; aria-description=&quot;class RichHelpConfiguration. Rich Help Configuration class. rich_click API reference.&quot; data-scb-api-head=&quot;class RichHelpConfiguration&quot; data-scb-api-source=&quot;rich_click API reference&quot; data-scb-api-summary=&quot;Rich Help Configuration class.&quot;&gt;&lt;span&gt;RichHelpConfiguration&lt;/span&gt;&lt;/a&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;file&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.Optional&quot; aria-description=&quot;data typing.Optional. Optional[X] is equivalent to X | None. Python 3.15 documentation.&quot; data-scb-api-head=&quot;data typing.Optional&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Optional[X] is equivalent to X | None.&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;Optional&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[&lt;/span&gt;&lt;a href=&quot;https://docs.python.org/3/library/typing.html#typing.IO&quot; aria-description=&quot;class typing.IO. Generic class IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such…. Python 3.15 documentation.&quot; data-scb-api-head=&quot;class typing.IO&quot; data-scb-api-source=&quot;Python 3.15 documentation&quot; data-scb-api-summary=&quot;Generic class IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such…&quot; data-scb-api-icon=&quot;python&quot;&gt;&lt;span&gt;IO&lt;/span&gt;&lt;/a&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;str&lt;/span&gt;&lt;span&gt;]] &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;None&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; -&gt; &lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;Console&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#module-rich.console&quot; aria-description=&quot;module rich.console. Rich documentation.&quot; data-scb-api-head=&quot;module rich.console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;rich.console&lt;/span&gt;&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#rich.console.Console&quot; aria-description=&quot;class rich.console.Console. A high level console interface. Rich documentation.&quot; data-scb-api-head=&quot;class rich.console.Console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-summary=&quot;A high level console interface.&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;Console&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;console &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;a href=&quot;https://rich.readthedocs.io/en/stable/reference/console.html#rich.console.Console&quot; aria-description=&quot;class rich.console.Console. A high level console interface. Rich documentation.&quot; data-scb-api-head=&quot;class rich.console.Console&quot; data-scb-api-source=&quot;Rich documentation&quot; data-scb-api-summary=&quot;A high level console interface.&quot; data-scb-api-icon=&quot;rich&quot;&gt;&lt;span&gt;Console&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;        &lt;span aria-hidden=&quot;true&quot;&gt;# ...&lt;/span&gt;&lt;span data-pagefind-ignore=&quot;&quot;&gt;&lt;span&gt;Code not shown&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; console&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;…so that Rich is only loaded when it is needed!&lt;/p&gt;
&lt;p&gt;Combined, these two changes account for the performance improvements you see.&lt;/p&gt;
&lt;p&gt;Performance isn’t everything; if it was, we’d all be using &lt;code dir=&quot;auto&quot;&gt;argparse&lt;/code&gt;, or we’d abandon Python altogether for Rust.
This is also peanuts in the grand scheme of things.
In all likelihood, you’ve spent more time reading this blog post than the cumulative amount of time you’ll save by &lt;code dir=&quot;auto&quot;&gt;pip install --upgrade&lt;/code&gt;-ing your &lt;strong&gt;rich-click&lt;/strong&gt; 1.7 project.
(There are other reasons to upgrade to 1.8 than performance, of course!)&lt;/p&gt;
&lt;p&gt;So why bother improving &lt;strong&gt;rich-click&lt;/strong&gt;’s performance if it’s not a big deal?
Because we’re honored every time someone chooses &lt;strong&gt;rich-click&lt;/strong&gt; for their applications, and we want to pay it back by keeping things as efficient as we reasonably can.
Your application is complex and special and all yours.
We’re excited we get to be a very small part of what you’re doing, 🫶 and we’ll do our best to keep our end of things neat and tidy.&lt;/p&gt;
&lt;div&gt;&lt;h3 id=&quot;and-more&quot;&gt;And more…&lt;/h3&gt;&lt;/div&gt;
&lt;p&gt;Under the hood, we’ve done misc. bugfixes and other small internal improvements+refactors,
mostly aimed at composability and customizability for advanced use cases.
(This does not impact 99% of users.)&lt;/p&gt;
&lt;div&gt;&lt;h2 id=&quot;plans-for-the-future&quot;&gt;Plans for the future&lt;/h2&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;rich-click&lt;/strong&gt; is not done evolving; 1.8 is just another step on the journey.
We already have tons of things planned out for 1.9, which we want to release by the end of 2024.&lt;/p&gt;
&lt;p&gt;Before we get there, we are going to spend a little bit of time rewriting and reorganizing our unit tests and adding coverage requirements.&lt;/p&gt;
&lt;p&gt;Thank you once again for using &lt;strong&gt;rich-click&lt;/strong&gt;! ❤️❤️❤️❤️❤️&lt;/p&gt;
</content:encoded><category>Release notes</category></item></channel></rss>