my own command line option parser - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: my own command line option parser (/thread-25332.html) |
my own command line option parser - Skaperen - Mar-27-2020 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. |