def _add_boolean_cli_param(params, key, value):
 if (value is True):
  params.append('--{0}'.format(key))

def _add_boolean_cli_param ( params , key , value ) : if ( value is True ) : params . append ( '--{0}' . format ( key ) )
adds key as a command line parameter to params .