Skip to content

Julynx/argsdict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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
}

Sponsor this project

Languages