<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Argparse on Samarthya</title><link>https://samarthya.me/tags/argparse/</link><description>Recent content in Argparse on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Thu, 02 Feb 2023 12:00:00 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/argparse/index.xml" rel="self" type="application/rss+xml"/><item><title>Python: `argparse`</title><link>https://samarthya.me/posts/python-argparse/</link><pubDate>Thu, 02 Feb 2023 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/python-argparse/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Five steps with argparse: import argparse, create an ArgumentParser, add_argument, parse_args, then use args"&#10; width="1200"&#10; height="630"&#10; src="https://samarthya.me/posts/python-argparse/pyarg_hu_ddd1be7c2c44493c.png"&#10; srcset="https://samarthya.me/posts/python-argparse/pyarg_hu_ddd1be7c2c44493c.png 800w, https://samarthya.me/posts/python-argparse/pyarg.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/python-argparse/pyarg.png"&gt;&lt;figcaption&gt;Recreated in October 2026 from the post; the original image was lost&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;p&gt;The &lt;code&gt;argparse&lt;/code&gt; module is a powerful tool for parsing command line arguments in Python. It provides an easy way to define the arguments required by your script and handle the input data passed to your script by the user.&lt;/p&gt;</description></item></channel></rss>