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'])
Python port of node's minimist module
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'])
Python port of node's minimist module
https://github.com/jarvys/pymist