code: def _ewp_flags_set(self, ewp_dic_subset, project_dic, flag_type, flag_dic):
          
          try:
              if flag_type in project_dic['misc'].keys():
                  # enable commands
                  index_option = self._get_option(ewp_dic_subset, flag_dic['enable'])
                  self._set_option(ewp_dic_subset[index_option], '1')
  
                  index_option = self._get_option(ewp_dic_subset, flag_dic['set'])
                  if type(ewp_dic_subset[index_option]['state']) != list:
                      # if it's string, only one state
                      previous_state = ewp_dic_subset[index_option]['state']
                      ewp_dic_subset[index_option]['state'] = []
                      ewp_dic_subset[index_option]['state'].append(previous_state)
  
                  for item in project_dic['misc'][flag_type]:
                      ewp_dic_subset[index_option]['state'].append(item)
          except KeyError:
              return
docs: Flags from misc to set to ewp project