code: def enabled(self):
          
          # Cache into ._enabled
          if self._enabled is None:
              if self.parent is not None and self.parent.enabled():
                  self._enabled = True
              else:
                  # Default to Enabled if not otherwise disabled
                  self._enabled = getattr(self.options, self.dest, True)
          return self._enabled
docs: Check whether we're enabled (or if parent is).