SIMple OPTion parser
Project description
# simopt, the SIMple OPTion parser
Simopt is a lightweight module for parsing command line options in python programs. The options can be written in a separate file or at the top of a script. They are (currently) written in a list of tuples, with each entry corresponding to an option consisting of
int: the option level (allowing differentiating help levels)
str: the option name (command line)
str: the option target (option class attribute)
class: the option unit type (parser)
int: the number of parameters for the option
object: the default value (None if no default)
int: flags (MULTI, MANDATORY, …)
str: description (help text)
String items in the option list are part of the help and allow sectioning options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for simopt-0.2.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23e8b5d1070ccd5c44b4c0c7ee595a202c491a0a11b40c0f6ab2a7ca14fd3a48 |
|
MD5 | 27a182b8d7772d144edaabcf76f2e5ff |
|
BLAKE2b-256 | 21ded1d1391bacb3617da1b95795468bcb67b7780a2a4cd19ffb5d7cf6caf663 |