Parse CLI Arguments With Rust Standard Crate 🦀📦 Rust Tutorial

Ғылым және технология

When you're building Rust applications, you'll oftentimes want to pass in user defined command line arguments. Although 3rd party crates exist for parsing CLI arguments, Rust also has built in functions that help you retrieve argument values. In this video, we'll explore how to retrieve and parse cli args, without importing any third-party crates!
🤯 Rust Programming Playlist 🦀 • Rust Programming Tutor...
📖 Rust Cargo Book 📦➡️ doc.rust-lang.org/cargo/
Visual Studio Code ➡️ code.visualstudio.com
Rust Website ➡️ rust-lang.org
Rustup Installer ➡️ rustup.rs
Rust Docs ➡️ doc.rust-lang.org/book
Please follow me on these other social channels!
➡️ trevorsullivan.net
➡️ github.com/pcgeek86
➡️ / pcgeek86
➡️ / trevorsullivan
➡️ / trevorsoftware
➡️ tiktok.com/pcgeek86
All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.
#rustlang #rust #rustdev #opensource #software #linux #devops #programming #rusty #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #developer

Пікірлер: 11

  • @hansdampf2284
    @hansdampf22849 ай бұрын

    Man is pumping out videos like crazy

  • @jesusmtz29
    @jesusmtz29Ай бұрын

    Not going to lie this is daunting lol as i follow along i feel i know this stuff but as soon as i try to guess ahead what i should do i get a bunch of errors. what a mental gym rust is

  • @jasvindersingh9297
    @jasvindersingh92979 ай бұрын

    Because of you i love rust now.... Thank you sir

  • @aintnochange

    @aintnochange

    5 ай бұрын

    Same! Before I watched these videos I perceived every rust code as kinda evil magic lmao

  • @ihgnmah
    @ihgnmah8 ай бұрын

    17:10 isn't .next() enough since it gives you the next one item?

  • @TrevorSullivan

    @TrevorSullivan

    8 ай бұрын

    You mean calling .skip(1).next() instead of .skip(1).take(1).next()? It's possible, I'd have to try it again 🙂

  • @ihgnmah

    @ihgnmah

    8 ай бұрын

    @@TrevorSullivan ​ yeah, also, I think .take() will create a new Iterator, which can incur some performance hits.

  • @TrevorSullivan

    @TrevorSullivan

    8 ай бұрын

    @@ihgnmah thanks for pointing that out!

  • @nofeah89
    @nofeah899 ай бұрын

    Should I learn rust despite all that's happening out there?

  • @TrevorSullivan

    @TrevorSullivan

    9 ай бұрын

    In my opinion, yes. All communities suffer from division and restructuring at some point. Just don't become part of it, and focus on building good software. That's my advice.

  • @nofeah89

    @nofeah89

    9 ай бұрын

    @@TrevorSullivan Thanks for replying. I just started learning rust for hobby projects.

Келесі