tmt/utils.py
def opt(self, option, default=None):
        """
        Get an option from the command line context

        Checks also parent options. For flags (boolean values) parent's
        True wins over child's False (e.g. run --verbose enables verbose
        mode for all included plans and steps).
        """
        # Check local option
        local = None
        if self._context is not None:
            local = self._context.params.get(option, default)
        # Check parent option
        parent = None
        if self.parent:
            parent = self.parent.opt(option, default)
        # Special handling for flags (parent's yes wins)
        if isinstance(parent, bool):
            return parent if parent else local
        return parent if parent is not None else local

        Get an option from the command line context

        Checks also parent options. For flags (boolean values) parent's
        True wins over child's False (e.g. run --verbose enables verbose
        mode for all included plans and steps).
        
Get an option from the command line context
Checks also parent options. For flags (boolean values) parent's
True wins over child's False .
Get an option from the command line context Checks also parent options . For flags ( boolean values ) parent ' s True wins over child ' s False .
def opt(self, option, default=None):
        local = None
        if self._context is not None:
            local = self._context.params.get(option, default)
        parent = None
        if self.parent:
            parent = self.parent.opt(option, default)
        if isinstance(parent, bool):
            return parent if parent else local
        return parent if parent is not None else local
def opt ( self , option , default = None ) : local = None if self . _context is not None : local = self . _context . params . get ( option , default ) parent = None if self . parent : parent = self . parent . opt ( option , default ) if isinstance ( parent , bool ) : return parent if parent else local return parent if parent is not None else local
Get an option from the command line context
Checks also parent options.
Get an option from the command line context Checks also parent options .
"""
        Get an option from the command line context

        Checks also parent options. For flags (boolean values) parent's
        True wins over child's False (e.g. run --verbose enables verbose
        mode for all included plans and steps).
        """ # Check local option # Check parent option # Special handling for flags (parent's yes wins)
self
option
default