tasks.py
def apply_option(self, cmd, option, active=True):
        """Apply a command-line option."""
        return re.sub(r'{{{}\:(?P<option>[^}}]*)}}'.format(option),
                      '\g<option>' if active else '', cmd)
def apply_option(self, cmd, option, active=True):
        return re.sub(r'{{{}\:(?P<option>[^}}]*)}}'.format(option),
                      '\g<option>' if active else '', cmd)
def apply_option ( self , cmd , option , active = True ) : return re . sub ( r'{{{}\:(?P<option>[^}}]*)}}' . format ( option ) , '\g<option>' if active else '' , cmd )
Apply a command-line option.
Apply a command - line option .