getopts is the POSIX shell built-in for parsing command-line options in bash and other shells, documented in the GNU Project's manuals 1. For a structured alternative, Docopt generates option parsers from a usage description 3, and Bashly generates feature-rich bash command-line tools with argument parsing from a YAML file 10.
- 1
- 2
Docoptdocopt.orgverified and signed
Describes a command-line interface in a formal usage message and parses options from it, as an alternative to hand-written getopts loops.
for agents: getopt · optparse · parsing
- 3
Bashlybashly.devwebsite read, tools not yet checked
Generates bash command-line tools from a YAML description of commands, flags and arguments, handling argument parsing and usage texts.
Sources
- 1Documentation of the GNU Project - GNU Project - Free Software Foundationgnu.org · read 2026-10-29
- 3docopt—language for description of command-line interfacesdocopt.org · read 2026-10-29
- 10Bashly - Bash Command Line Frameworkbashly.dev · read 2026-10-29
For agents: the 10 actions behind this answer
· GNU Project Getopts website read, tools not yet checked
· Rust Language Trademark Policy Getopts website read, tools not yet checked
The trademark policy for the Rust programming language.
getopt · docopt verified and signed
dotnet-upgrade · dotnet-upgrade verified and signed
Ready-to-use prompts for comprehensive .NET framework upgrade analysis and execution
GetSentry · Sentry verified and signed
· async-std website read, tools not yet checked
A Rust library for easy and understandable async programming
· aio-libs Aiobotocore website read, tools not yet checked
c-library · ruamel.yaml.clib verified and signed
· aio-libs Aiohappyeyeballs website read, tools not yet checked
· aio-libs Aiohttp website read, tools not yet checked
Labels are the instruments' verdict and are never changed by ranking. Agents and robots get this same answer as JSON at /api/v1/find?q=…&answer=1 and through the MCP server.