Best CLI arg parser for use in Rust to port from Perl with Getopt::Long?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • command-line-rust

    Code for Command-Line Rust (O'Reilly, 2022, ISBN 9781098109417) https://learning.oreilly.com/library/view/command-line-rust/9781098109424/

  • Old-timey Perl guy here, and I second the use of clap. I have loads of examples at https://github.com/kyclark/command-line-rust if you want to copy.

  • pico-args

    An ultra simple CLI arguments parser.

  • If fewer dependencies is better, you can't get much fewer than pico-args, which has zero dependencies.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • getopts-long-rs

    Rust cli options parsing library inspired by Perl's Getopt::Long

  • A direct port seems to just be a stub: https://github.com/salewski/getopts-long-rs

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Questions about moving from Bash to Rust

    2 projects | /r/learnprogramming | 23 Apr 2023
  • Error handling in a CLI app

    1 project | /r/learnrust | 20 Feb 2023
  • Learning Advice -- next after rustlings? Anything interactive?

    3 projects | /r/rust | 11 Jan 2023
  • Telegraph and the Unix Shell

    8 projects | /r/commandline | 31 Dec 2022
  • Like I Don't Know About Rust (HELP)

    1 project | /r/learnrust | 22 Aug 2022