Rust Command-line argument parsing

Open-source Rust projects categorized as Command-line argument parsing

Top 4 Rust Command-line argument parsing Projects

  • clap-rs

    A full featured, fast Command Line Argument Parser for Rust

    Project mention: Hey Rustaceans! Got a question? Ask here! (43/2022)! | | 2022-10-24

    If you check the bottom of a crates page on, you can see download stats. clap has over 81M downloads. arkwerk has 3,868.

  • structopt

    Parse command line arguments by defining a struct.

    Project mention: clap with Ed Page :: Rustacean Station | | 2022-04-25

    I feel like discovering moves like this is a weakness in the ecosystem today. You can check out some of our discussion on raising visibility

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.


    Docopt for Rust (command line argument parser).

    Project mention: Fedora to disallow CC0-licensed code | | 2022-07-25

    Ditto, I guess? :P (But obviously with the position on the Unlicense flipped.)

    To address your indictment head-on: you suggesting the 0BSD as a better alternative is really missing my point. The 0BSD is not an alternative for my use case. The Unlicense is one of the very few overt "political" acts that I inject into the software I produce. Its purpose is to make a statement. The 0BSD doesn't do that IMO, so it's not actually an alternative that meets my advocacy goal.

    You and Rick Moen seem to have the same apparent blind spot for this. See my conversation with him that started here (which might also clarify some aspects of my own position):

    And finally, note that my dual licensing scheme is exactly a response to the "problems pointed out by quite a few people":

  • easy_flag

    Simple command line flag parser for rust.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-10-24.

Rust Command-line argument parsing related posts


What are some of the best open-source Command-line argument parsing projects in Rust? This list will help you:

Project Stars
1 clap-rs 10,063
2 structopt 2,540
3 744
4 easy_flag 3
Delete the most useless function ever: context switching.
Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.