Simplify default params handling

Issue #36 new
Mikhail Korobov
repo owner created an issue

Idea by Vladimir Mihailenco (a part of #32):

//library usage (not from CLI). Currently we have following code to accomplish it://

{{{ def do(param1=None): param1 = param1 or env.conf.PARAM1 # such line for every param }}}

//which can be simplified://

{{{ @with_not_none_settings def do(**kwargs): env.conf.PARAM1 # is already populated by decorator }}}

Comments (1)

  1. Log in to comment