Docopt.sh – Command-Line Argument Parser for Bash 3.2, 4, and 5

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • docopt.sh

    Command-line argument parser for bash 3.2, 4+, and 5+.

  • I like that this generates readable output that could pass as hand-written code.

    The docopt.sh output looks like it went through a JS minifier. Or is there a way to change that? If so I think it should default to that.

    https://github.com/andsens/docopt.sh/blob/master/docs/naval_...

  • docopt

    This project is no longer maintained. Please see https://github.com/jazzband/docopt-ng

  • For anyone unfamiliar, docopt is an established standard for specifying arguments in a script’s doc string. I use it for Python and it’s lovely. You’re going to write a docstring with examples anyway, why not make them functional?

    http://docopt.org/

  • 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
  • argc

    A Bash CLI framework, also a Bash-based command runner.

  • docopt.rs

    Discontinued Docopt for Rust (command line argument parser).

  • Consider using clap or possibly structopt instead.

    It's a lovely way to internalize the CLI argument cultural norms, decrease confusing and verbose argument parsing, make argument parsing work-free for the developer, and make argument parsing a copy-paste across languages. There's no greater pleasure than iteratively adding options to your program by just adding a line of text

    -n, --new-option Do something new

    I honestly think making a docopt parser is just very hard, which may limit its future prospects.

    [the docopt rust repo.]: https://github.com/docopt/docopt.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