/argsdict

Simple command-line argument parser.

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

argsdict

Simple command-line argument parser.

$ python example.py John Smith --age=30 --married

example.py

from argsdict import args

dictionary = args(['name', 'surname'])

dictionary

{
  "name": "John",
  "surname": "Smith",
  "--age": "30",
  "--married": true
}