<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Command Line on Siva Kalidasan</title>
    <link>https://mksiva.com/tags/command-line/</link>
    <description>Recent content in Command Line on Siva Kalidasan</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 20 Jun 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://mksiva.com/tags/command-line/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Building a Simple CLI Tool with Picocli</title>
      <link>https://mksiva.com/tech/building-a-simple-cli-with-picocli/</link>
      <pubDate>Sat, 20 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://mksiva.com/tech/building-a-simple-cli-with-picocli/</guid>
      <description>&lt;p&gt;&lt;em&gt;Picocli is a small Java library that makes it easy to build command-line tools. You write plain Java classes, add a few annotations, and Picocli handles parsing, help text, and error messages for you.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&#34;why-build-a-cli-tool&#34;&gt;Why build a CLI tool?&lt;/h2&gt;
&lt;p&gt;Many useful tools run in the terminal:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Build scripts&lt;/li&gt;
&lt;li&gt;Data migration utilities&lt;/li&gt;
&lt;li&gt;Dev helpers (rename files, check configs, seed databases)&lt;/li&gt;
&lt;li&gt;Internal admin tools&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You &lt;em&gt;can&lt;/em&gt; parse &lt;code&gt;args&lt;/code&gt; manually with &lt;code&gt;String[] args&lt;/code&gt;, but that gets messy quickly when you need flags, subcommands, defaults, and &lt;code&gt;--help&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
