Nevalicjus / nevargs

A very bad python package that parses your cli-like argument strings

Home Page:https://docs.n3v.xyz/nevargs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nevargs

Nevargs is a simple package that formats cli-like argument strings into a dictionary

Arguments with no value are returned under args and for each flag found, it's arguments are under {flag}

Installation

python3 -m pip install nevargs

Example

>>> import nevargs
>>> s = "this is -f True fun -c command"
>>> nevargs.dictify(s)
{'args': ['this', 'is', 'fun'], '-f': ['True'], '-c': ['command']}

About

A very bad python package that parses your cli-like argument strings

https://docs.n3v.xyz/nevargs

License:MIT License


Languages

Language:Python 100.0%