code: def _get_all_cmd_line_scopes():
      
      all_scopes ={GLOBAL_SCOPE}
      for goal in Goal.all():
        for task in goal.task_types():
          all_scopes.add(task.get_scope_info().scope)
      return all_scopes
docs: Return all scopes that may be explicitly specified on the cmd line, in no particular order.
  
      Note that this includes only task scope, and not, say, subsystem scopes,
      as those aren't specifiable on the cmd line.