home.social

#optparse — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #optparse, aggregated by home.social.

  1. @sumanthvepa

    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.

    #click #optparse #argparse #CLI

  2. is a dependencyless .

    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 🔗️: github.com/skeeto/optparse