python-itoolkit
python-itoolkit copied to clipboard
iCmd, iSh, iPgm, ... should take kwargs instead of options dictionary
Original report by Kevin Adler (Bitbucket: kadler, GitHub: kadler).
compare:
#!python
iPgm('foo', 'FOO', {'lib': 'MYLIB', 'function': 'bar' }) # call function 'bar' in MYLIB/FOO
to:
#!python
iPgm('foo', 'FOO', lib='MYLIB', function='bar')
https://pythontips.com/2013/08/04/args-and-kwargs-in-python-explained/ (this works similarly in Ruby as well, just search for kwargs)
Original comment by Tony Cairns (Bitbucket: rangercairns, GitHub: rangercairns).
This is a low priority, but will be considered in future release.