#optparse — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #optparse, aggregated by home.social.
-
argparse is maybe-okay for simple things, but I don't use it for pretty much anything anymore. Have you tried one of the other extant packages that provide higher-level, more-powerful option handling?
I use `click` extensively for complex multiple-command CLI tools.
-
#optparse is a #publicdomain dependencyless #getopt.
optparse is a command line option parser that functions in a similar manner to getopt. optparse does not use global state, allowing for subcommands and restarting of the parser in a reliable way. optparse provides both short and long option parsing, option permuting, and capturable errors.
Website 🔗️: https://github.com/skeeto/optparse