<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Command Line Arguments on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/command-line-arguments/</link><description>Recent content in Command Line Arguments on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 01 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/command-line-arguments/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 2: Defining CLI Flags with Clap</title><link>https://ai-blog.noorshomelab.dev/rust-password-generator-guide/chapter-02-define-cli-flags/</link><pubDate>Mon, 01 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-password-generator-guide/chapter-02-define-cli-flags/</guid><description>&lt;h3 id="purpose-of-this-chapter"&gt;Purpose of This Chapter&lt;/h3&gt;
&lt;p&gt;This chapter focuses on defining the command-line interface (CLI) for our password generator. We&amp;rsquo;ll use the &lt;code&gt;clap&lt;/code&gt; crate to specify flags and options that allow users to customize their generated passwords, such as length, inclusion of numbers, symbols, and uppercase/lowercase letters.&lt;/p&gt;
&lt;h3 id="concepts-explained"&gt;Concepts Explained&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Command-Line Argument Parsing:&lt;/strong&gt; CLI tools rely on arguments and flags provided by the user to determine their behavior. For example, a user might type &lt;code&gt;rpassword-gen --length 16 --numbers&lt;/code&gt; to generate a 16-character password including numbers. Parsing these arguments correctly is crucial.&lt;/p&gt;</description></item><item><title>Chapter 3: Core Password Generation Logic</title><link>https://ai-blog.noorshomelab.dev/rust-password-generator-guide/chapter-03-core-password-logic/</link><pubDate>Mon, 01 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-password-generator-guide/chapter-03-core-password-logic/</guid><description>&lt;h3 id="purpose-of-this-chapter"&gt;Purpose of This Chapter&lt;/h3&gt;
&lt;p&gt;Now that we can parse command-line arguments, it&amp;rsquo;s time to build the core engine of our password generator: the logic for selecting characters and randomly assembling them into a password. This chapter will focus on creating a pool of possible characters based on user input and then picking random characters from that pool.&lt;/p&gt;
&lt;h3 id="concepts-explained"&gt;Concepts Explained&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Random Number Generation (RNG):&lt;/strong&gt; For security-critical applications like password generators, it&amp;rsquo;s vital to use a cryptographically secure pseudo-random number generator (CSPRNG). This ensures that the generated sequences are unpredictable and cannot be easily guessed or reproduced. The &lt;code&gt;rand&lt;/code&gt; crate in Rust provides this capability.&lt;/p&gt;</description></item></channel></rss>