def add_option(self, section, option, value=None):
        """
        Creates an option for a section. If the section does
        not exist, it will create the section.
        """
        # check if section exists; create if not
        if not self.config.has_section(section):
            message = self.add_section(section)
            if not message[0]:
                return message

        if not self.config.has_option(section, option):
            if value:
                self.config.set(section, option, value)
            else:
                self.config.set(section, option)
            return(True, self.config.options(section))
        return(False, 'Option: {} already exists @ {}'.format(option, section))
def add_option ( self , section , option , value = None ) : if not self . config . has_section ( section ) : message = self . add_section ( section ) if not message [ 0 ] : return message if not self . config . has_option ( section , option ) : if value : self . config . set ( section , option , value ) else : self . config . set ( section , option ) return ( True , self . config . options ( section ) ) return ( False , 'Option: {} already exists @ {}' . format ( option , section ) )
Creates an option for a section. If the section does
        not exist, it will create the section.