ht:#D73A49;--shiki-dark:#F97583;">end</span></span></code></pre></div><p>This code means your app&#39;s global options are <code>--dry-run</code>, which will not accept an argument, and <code>--status</code> which <em>must</em> be given an argument. The arguments to <code>on</code> are the same as those for Ruby&#39;s <code>OptionParser</code>.</p><p>Declaring subcommands provides a similar API. Let&#39;s say our app has a &quot;status&quot; subcommand, and a &quot;run&quot; subcommand.</p><div class="langu