Jaymon / captain

command line python scripts for humans
MIT License
13 stars 1 forks source link

Parsing unknown arguments syntax #56

Closed Jaymon closed 4 years ago

Jaymon commented 4 years ago

Shouldn't this work?

def main(**kwargs):
    pout.v(kwargs)

called like this:

$ python -m modname --foo=1 --bar 2

should print out foo and bar because I passed in **kwargs, but it didn't work.