const_hoisted_35=/* @__PURE__ */createBaseVNode("p",null,"There are also control sequences that can be used to change the behavior of ANSI output:",-1);
const_hoisted_37=/* @__PURE__ */createStaticVNode('<h1id="arguments-and-configuration"tabindex="-1">ArgumentsandConfiguration<aclass="header-anchor"href="#arguments-and-configuration"aria-label="Permalink to "Arguments and Configuration""></a></h1><p>QMKhandlesthedetailsofargumentparsingandconfigurationforyou.Whenyouaddanewargumentitisautomaticallyincorporatedintotheconfigtreebasedonyoursubcommand'snameandthelongnameoftheargument.Youcanaccessthisconfigurationin<code>cli.config</code>,usingeitherattribute-styleaccess(<code>cli.config.<subcommand>.<argument></code>)ordictionary-styleaccess(<code>cli.config['<subcommand>']['<argument>']</code>).</p><p>UnderthehoodQMKuses<ahref="https://docs.python.org/3/library/configparser.html"target="_blank"rel="noreferrer">ConfigParser</a>tostoreconfigurations.Thisgivesusaneasyandstraightforwardwaytorepresenttheconfigurationinahuman-editableway.WehavewrappedaccesstothisconfigurationtoprovidesomenicitiesthatConfigParserdoesnotnormallyhave.</p><h2id="reading-configuration-values"tabindex="-1">ReadingConfigurationValues<aclass="header-anchor"href="#reading-configuration-values"aria-label="Permalinkto"ReadingConfigurationValues""></a></h2><p>Youcaninteractwith<code>cli.config</code>inallthewaysyou'dnormallyexpect.Forexamplethe<code>qmkcompile</code>commandgetsthekeyboardnamefrom<code>cli.config.compile.keyboard</code>.Itdoesnotneedtoknowwhetherthatvaluecamefromthecommandline,anenvironmentvariable,ortheconfigurationfile.</p><p>Iterationisalsosupported:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>forsectionincli.config:</span></span>\n<spanclass="line"><span>forkeyincli.config[section]:</span></span>\n<spanclass="line"><span>cli.log.info('%s.%s:%s',section,key,cli.config[section][key])</span></span></code></pre></div><h2id="setting-configuration-values"tabindex="-1">SettingConfigurationValues<aclass="header-anchor"href="#setting-configuration-values"aria-label="Permalinkto"SettingConfigurationValues""></a></h2><p>Youcansetconfigurationvaluesintheusualways.</p><p>Dictionarystyle:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>cli.config['<section>']['<key>']=<value></span></span></code></pre></div><p>Attributestyle:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>cli.config.<section>.<key>=<value></span></span></code></pre></div><h2id="deleting-configuration-values"tabindex="-1">DeletingConfigurationValues<aclass="header-anchor"href="#deleting-configuration-values"aria-label="Permalinkto"DeletingConfigurationValues""></a></h2><p>Youcandeleteconfigurationvaluesintheusualways.</p><p>Dictionarystyle:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>del(cli.config['<section>']['<key>'])</span></span></code></pre></div><p>Attributestyle:</p><divclass="language-vp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang"></span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><span>del(cli.config.<section>.<key>)</span></span></code></pre></div><