CLI Argument Specification and Parser
A CLI argument specification with an implementing parser, designed to standardize command-line argument conventions as an alternative to Python's argparse — supporting consistent usage/help invocation and predictable behavior when no arguments are given.
What it addresses
Frustrated with Python's argparse and with inconsistent argument conventions across work tools, where pulling up a usage string might require help, -h, --help, -help, +help, or +<prog>.help, and not all scripts display a usage string when no args are given.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
CLI Argument Specification and Parser
A CLI argument specification with an implementing parser, designed to standardize command-line argument conventions as an alternative to Python's argparse — supporting consistent usage/help invocation and predictable behavior when no arguments are given.
Problem: Frustrated with Python's argparse and with inconsistent argument conventions across work tools, where pulling up a usage string might require help, -h, --help, -help, +help, or +<prog>.help, and not all scripts display a usage string when no args are given.
Audience: Developers writing command-line programs and scripts
Posted by @addoo · Original source ↗
Source text · @addoo · · Source ↗
A CLI argument specification and a parser that implements it. Mostly because I’m annoyed with Python’s argparse, so I’m adding blackjack and removing hookers.