jarvys / pymist

Python port of node's minimist module

Home Page:https://github.com/jarvys/pymist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'])

About

Python port of node's minimist module

https://github.com/jarvys/pymist


Languages

Language:Python 100.0%