now, parameters added support to --key=value

args is a dict object instead of list. manage exceptions with KeyError instead of IndexError.
The legacy way is available.