pymist

Python port of node's minimist module


License
Other
Install
pip install pymist==0.0.2

Documentation

pymist

Python port of node's minimist module

usage

from pymist import parse

"""
result: {
    'a': True,
    'b': 1
}
"""
parse(['-a', '-b', '1'])

"""
result: {
    'mode': 'debug',
    'f': 'test.py'
}
"""
parse(['--mode=debug', '-f', 'test.py'])