Python Forum

Full Version: my own command line option parser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i'm creating my own command line option parser function. i might make it into a class but its not that much to configure and i normally never need multiple instances of this. it will support options that begin with '-' or '+' or '--' or '++'. it can also collect name=value and anything you set up in a set. it also recognizes IPv4 and IPv6 addresses in place. it will also deal with '--help' and '--version' directly (do output and exit).

it won't be very popular if i release it because it is for command line scripts and won't be pythonic.

last call for suggestions for v1. coding has started.